Commit graph

4605 commits

Author SHA1 Message Date
Karl Hobley
5b123ca5f4 Deterministic ordering for tags 2015-08-03 20:27:22 +01:00
Karl Hobley
1d0fa2a3bf Various tweaks and fixes 2015-08-03 20:24:51 +01:00
Karl Hobley
6d92ca4f3a Moved page model specific check into PageSerializer 2015-08-03 20:01:26 +01:00
Karl Hobley
c2706ac6d4 Split serialize_fields out of to_representation
Makes some code look a bit better
2015-08-03 19:49:08 +01:00
Karl Hobley
2a79ee7b09 serialize_object_metadata => serialize_meta 2015-08-03 19:40:54 +01:00
Karl Hobley
f669166128 serialize_object is now to_representation 2015-08-03 19:39:31 +01:00
Karl Hobley
b3ca0412f5 Merged BaseSerializer with WagtailSerializer
Previously, WagtailSerializer and it's subclasses were responsible for serializing objects and it delegated serializing the dynamic fields to automatically generated subclasses of BaseSerializer.

Now, these have been merged and all serializers are generated automatically for a particular request. The responsibility of generating the serializers is now in the endpoint.
2015-08-03 19:38:08 +01:00
Karl Hobley
32d0170882 Moved responsibility of getting fields for request to endpoint 2015-08-03 19:08:24 +01:00
Karl Hobley
2d691cd6e7 Simplified handling of show_details flag in serializers 2015-08-03 17:20:30 +01:00
Karl Hobley
b4d0a6aded Simplified handling of request object in serializers 2015-08-03 17:17:11 +01:00
Karl Hobley
0b77112bf3 Moved get_serializer_field logic into base serializer class 2015-08-03 17:16:41 +01:00
Karl Hobley
199f15f3a3 Cleanup get_serializer_fields 2015-08-03 14:52:54 +01:00
Karl Hobley
f1f73461c5 Goodbye, get_api_data 2015-08-03 14:37:27 +01:00
Karl Hobley
a353f803e9 Use rest frameworks serializers 2015-08-03 14:37:27 +01:00
Karl Hobley
85a4209893 Use rest frameworks fields API 2015-08-03 14:37:26 +01:00
Karl Hobley
4523f8b5cc Refactored get_api_data into classes 2015-08-03 14:37:26 +01:00
Karl Hobley
30408252ff Contributor/changelog/release note for #1538 2015-08-03 14:35:58 +01:00
Karl Hobley
94ad915fee Merge pull request #1538 from tomchristie/rest-framework
Refactor API to REST framework.
2015-08-03 14:33:49 +01:00
Karl Hobley
c553a122eb Merge pull request #1575 from theju/master
Update the urls to make use of namespaced URLs
2015-08-02 22:44:24 +01:00
Thejaswi Puthraya
31867e74c0 Update the urls to make use of namespaced URLs 2015-08-02 16:49:25 +00:00
Karl Hobley
3afeff8e15 Merge pull request #1570 from gasman/fix/remove-urlconf-check
Remove check for pre-Wagtail-0.3 urlconfs in wagtailimages
2015-08-01 12:04:50 +01:00
Matt Westcott
ea2cabca98 Release note for #1492 2015-08-01 11:22:59 +02:00
Matt Westcott
943310d097 add forgotten changelog items 2015-08-01 11:20:21 +02:00
Matt Westcott
0964a7f6b6 Merge pull request #1492 from kaedroho/es-index-chunked-rebuild
Rebuild search indices in chunks
2015-08-01 11:16:57 +02:00
Matt Westcott
f51412e764 Merge branch 'kaedroho-es-index-atomic-rebuild' 2015-08-01 11:14:08 +02:00
Matt Westcott
bd59ee93b6 Release note for #1490 2015-08-01 11:13:46 +02:00
Matt Westcott
55c3606b16 Merge branch 'es-index-atomic-rebuild' of https://github.com/kaedroho/wagtail into kaedroho-es-index-atomic-rebuild 2015-08-01 10:52:20 +02:00
Matt Westcott
955f751965 Remove check for Wagtail-0.3-style urlconfs in wagtailimages 2015-08-01 00:01:08 +02:00
Karl Hobley
1c1a9b01df Fix typos 2015-07-31 11:29:11 +01:00
Karl Hobley
f341d3c5f1 Various tweaks to update_index 2015-07-31 11:27:20 +01:00
Tim Heap
cb2146930b Refactor search index chunk updating 2015-07-31 11:27:20 +01:00
Karl Hobley
e5bb7f990e Implemented chunked index rebuilding 2015-07-31 11:27:20 +01:00
Karl Hobley
220bcbdf19 Fix Typo 2015-07-31 11:18:11 +01:00
Karl Hobley
a5d4be90d3 Create new alias at the finish() stage
https://github.com/torchbox/wagtail/pull/1490#discussion_r35779487
2015-07-31 11:16:25 +01:00
Matt Westcott
1005e2885f Release note and upgrade consideration for #1235 2015-07-29 11:59:10 +01:00
Matt Westcott
9dff7a21ef Merge pull request #1235 from kaedroho/searchpicks-module
Search promotions module
2015-07-29 11:52:42 +01:00
Karl Hobley
488fcfc8d2 Changelog/release note for #1540 2015-07-28 11:26:49 +01:00
Karl Hobley
14fc0f9059 Merge pull request #1540 from gasman/fix/site-permissions
Make wagtailsites work for non-superusers
2015-07-28 11:24:25 +01:00
Tom Christie
5cfeaa437d Rejig find_model_detail_view for easier customization of available endpoints. 2015-07-23 09:39:12 +01:00
Tom Christie
1905585e62 pages_for_site 2015-07-22 09:00:40 +01:00
Tom Christie
40db88f4e1 Resolve py3 compat issue - always return bytes from WagtailJSONRenderer 2015-07-21 17:31:40 +01:00
Tom Christie
0d0ff6c89a PEP8 fix 2015-07-21 17:26:49 +01:00
Matt Westcott
41b6a7a9c8 Fix request.POST checks so that we don't need a dummy value in tests 2015-07-21 17:06:21 +01:00
Matt Westcott
bf21a0cbe5 Add tests for accessing site admin with non-superuser permissions 2015-07-21 17:03:55 +01:00
Matt Westcott
fa230de03b Fix app label for site permissions - should be 'wagtailcore', not 'site' 2015-07-21 15:58:34 +01:00
Tom Christie
54d14b64bb PEP8 fixes 2015-07-21 15:08:10 +01:00
Tom Christie
b5a46f3dee Added REST framework to tox 2015-07-21 15:03:46 +01:00
Karl Hobley
d4259e133b Merge pull request #1535 from gasman/cleanup/split-wagtailadmin-urls
Split up wagtailadmin/urls.py into submodules
2015-07-21 14:50:22 +01:00
Karl Hobley
6c5aa31911 Comment in migration wagtailsearch.0003_remove_editors_picks 2015-07-21 13:37:42 +01:00
Karl Hobley
459a8c8b44 Renamed searchpicks app to searchpromotions 2015-07-21 13:37:42 +01:00