Wykres commitów

4714 Commity (4657c62326580f5de9cc2178599d82e1c1913b37)

Autor SHA1 Wiadomość Data
Matt Westcott 4657c62326 Release note for 2015-08-20 16:53:56 +01:00
Matt Westcott 87905431b1 Merge branch 'kaedroho-extra-indexes' 2015-08-20 16:51:16 +01:00
Matt Westcott 4e28ad42d0 Merge branch 'extra-indexes' of https://github.com/kaedroho/wagtail into kaedroho-extra-indexes 2015-08-20 16:38:20 +01:00
Matt Westcott e8a3d7ba88 Make page chooser accept empty page_type parameter again 2015-08-20 16:21:50 +01:00
Matt Westcott 6d802303de Merge branch 'master' of https://github.com/torchbox/wagtail 2015-08-20 12:47:36 +01:00
Matt Westcott 967b3b3afc Merge branch 'kaedroho-page-chooser-cleanup' 2015-08-20 12:47:10 +01:00
Matt Westcott 48dc4b198e Merge branch 'page-chooser-cleanup' of https://github.com/kaedroho/wagtail into kaedroho-page-chooser-cleanup 2015-08-20 12:44:38 +01:00
Karl Hobley fca5e10314 Upgrade consideration for EditorsPick model move 2015-08-20 12:26:31 +01:00
Karl Hobley f47bb70eba Merge pull request from kaedroho/rest-framework-serializers
Use rest frameworks serializers in API
2015-08-20 11:02:00 +01:00
Karl Hobley 0bf12ca333 Put Page class fallback back
Reverts: 7e16aa0d8d
2015-08-20 10:44:32 +01:00
Karl Hobley 3948a0bb47 Cleanup DocumentMetaField.to_representation()
No longer calling super() to improve clarity
2015-08-19 13:33:19 +01:00
Karl Hobley 9d4eace4e6 Cleanup PageMetaField.to_representation()
No longer calling super() to improve clarity
2015-08-19 13:27:55 +01:00
Karl Hobley 9bd04efd05 Added index on AbstractImage.created_at
Fixes 

Speeds up image index/chooser when many images exist in the site
2015-08-19 12:15:40 +01:00
Karl Hobley a8a7344927 Added index on PageRevision.submitted_for_moderation
Fixes 

Speeds up "pages in moderation" query on the admin dashboard when there are lots of revisions on the site.
2015-08-19 12:13:21 +01:00
Karl Hobley 5b1450722a Merge pull request from gasman/feature/generic-cbv-sites
Introduce generic admin class-based views/templates, and port wagtailsites to use them
2015-08-19 09:39:35 +01:00
Matt Westcott ebac5727fb Pass 'object'/'object_list' to generic admin templates, and make context_object_name optional 2015-08-18 21:26:48 +01:00
Matt Westcott 78f7c95156 Provide a get_add_url method on CreateView, for consistency with the edit/delete views.
Unfortunately wagtailadmin/shared/header.html still needs to be passed a URL name, so it isn't yet possible to have a non-static add URL.
2015-08-18 21:26:48 +01:00
Matt Westcott 46eae81e93 Make PermissionCheckedView into a pure mixin class 2015-08-18 21:26:48 +01:00
Matt Westcott 60e3e3aa08 Use 'template_name' rather than 'template' for consistency with Django's CBVs 2015-08-18 21:26:47 +01:00
Matt Westcott 5d937a21cc Set generic 'confirm delete' view to use wagtailadmin/generic/confirm_delete.html template by default 2015-08-18 21:26:47 +01:00
Matt Westcott 2085b4c453 make 'confirm delete site' template fully generic 2015-08-18 21:26:47 +01:00
Matt Westcott 3266b453dd make sites index template inherit from a generic version 2015-08-18 21:26:47 +01:00
Matt Westcott 2d47ad3126 Make header section generic on the sites index template 2015-08-18 21:26:47 +01:00
Matt Westcott 04f99dbe4d make 'edit site' template inherit from a generic version 2015-08-18 21:26:47 +01:00
Matt Westcott 36dd012650 Move all non-generic data from the 'edit site' template into class variables 2015-08-18 21:26:47 +01:00
Matt Westcott 1e94187c8e make 'create site' template inherit from a generic version 2015-08-18 21:26:47 +01:00
Matt Westcott a9735a02e7 Move all non-generic data from the 'create site' template into class variables 2015-08-18 21:26:47 +01:00
Matt Westcott e86a005d1a Move site create/edit form into an include 2015-08-18 21:26:47 +01:00
Matt Westcott 57590f7bf4 Extract generic functionality from sites delete view 2015-08-18 21:26:47 +01:00
Matt Westcott 77adea6c51 Extract generic functionality from sites edit view 2015-08-18 21:26:46 +01:00
Matt Westcott bc0f46e5f7 Extract generic functionality from sites create view 2015-08-18 21:26:46 +01:00
Matt Westcott c0505bb8aa Extract generic functionality from sites index view 2015-08-18 21:26:46 +01:00
Matt Westcott 1d535aa081 Use a mixin class to implement permission checks on CBVs.
Method decorators don't play well with inheritance.
2015-08-18 21:26:46 +01:00
Matt Westcott 7b5028ebd4 Convert 'delete site' to a class-based view 2015-08-18 21:26:46 +01:00
Matt Westcott 8d3039bb7e Convert 'edit site' to a class-based view 2015-08-18 21:26:46 +01:00
Matt Westcott 5abde658be Convert 'create site' to a class-based view 2015-08-18 21:26:46 +01:00
Matt Westcott acadf2155f Convert sites index to a class-based view 2015-08-18 21:26:46 +01:00
Karl Hobley 1bfe3ef427 Merge pull request from gasman/fix/permission-consistency-2
Fix inconsistencies in our permissions model - part 2
2015-08-18 15:59:35 +01:00
Karl Hobley aba7f7a38a Added page_model_from_string method 2015-08-18 09:39:57 +01:00
Karl Hobley 614cec69ea Removed unused import 2015-08-18 09:28:26 +01:00
Karl Hobley d73fdba0b4 Check specified page type is infact a page 2015-08-17 17:29:26 +01:00
Karl Hobley 96113db353 Use resolve_model_string for finding page model 2015-08-17 17:28:17 +01:00
Karl Hobley 4532010539 Fix crash when invalid page type name is given to page chooser search 2015-08-17 17:04:51 +01:00
Karl Hobley 35f10306ae Tests for page chooser search 2015-08-17 17:03:34 +01:00
Karl Hobley cc25263cac Clarity improvements to the browse view 2015-08-17 15:43:03 +01:00
Karl Hobley 6247c7faa3 No need to define search form so early 2015-08-17 15:15:23 +01:00
Karl Hobley 9a8f0d4d0d Cut out duplicated pagination code 2015-08-17 15:14:36 +01:00
Karl Hobley e58083f398 Use nicer queries for restricing page types 2015-08-17 15:11:34 +01:00
Karl Hobley b4aa3230d4 Fix crash when invalid page type name is given to page chooser 2015-08-17 15:06:10 +01:00
Karl Hobley 240a7f1c73 Improvements to page chooser test suite 2015-08-17 15:06:10 +01:00