Tim Heap
|
d0eadafeb5
|
Remove reference to non-existant page in docs
|
2015-08-20 21:02:52 +10:00 |
|
Karl Hobley
|
f47bb70eba
|
Merge pull request #1579 from kaedroho/rest-framework-serializers
Use rest frameworks serializers in API
|
2015-08-20 11:02:00 +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
|
5b1450722a
|
Merge pull request #1616 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 #1614 from gasman/fix/permission-consistency-2
Fix inconsistencies in our permissions model - part 2
|
2015-08-18 15:59:35 +01:00 |
|
Karl Hobley
|
0ba28e5ca9
|
Changelog for #1587
|
2015-08-17 12:43:52 +01:00 |
|
Karl Hobley
|
2a1dde6ca6
|
Merge pull request #1587 from mvantellingen/page-url-performance
Page url performance
|
2015-08-17 12:40:38 +01:00 |
|
Karl Hobley
|
cebe5249d0
|
Changelog/release notes for #1606
|
2015-08-17 12:16:32 +01:00 |
|
Karl Hobley
|
f259ce4dfc
|
Merge pull request #1618 from marctc/patch-1
Fixed indentation problems
|
2015-08-17 11:52:50 +01:00 |
|
Marc
|
3b651241ae
|
Fixed indentation problems
The original indentation used was 2 spaces. Fixed to 4 spaces.
|
2015-08-17 12:49:54 +02:00 |
|
Karl Hobley
|
8eaf25e3e9
|
Merge pull request #1606 from gasman/fix/permission-consistency
Fix various inconsistencies in our permissions model
|
2015-08-17 11:48:58 +01:00 |
|
Matt Westcott
|
faeecf1582
|
Enforce permissions on search promotions, and register them with the group permissions UI
|
2015-08-15 22:55:09 +02:00 |
|
Matt Westcott
|
63511a7ee6
|
Enforce redirect permissions correctly, and register them with the group permissions UI
|
2015-08-15 22:55:09 +02:00 |
|
Matt Westcott
|
b43e3f8cc7
|
Register site permissions in the group permissions UI
|
2015-08-15 22:55:08 +02:00 |
|
Matt Westcott
|
08891c69f7
|
Fix description of 'edit' page permission
'edit' permission does not provide the ability to add pages.
|
2015-08-15 22:55:08 +02:00 |
|
Karl Hobley
|
634136fb78
|
Added image serializer class
|
2015-08-15 21:29:44 +01:00 |
|
Karl Hobley
|
f88995a9d7
|
Doc strings for custom serializer fields
|
2015-08-15 21:29:39 +01:00 |
|
Matt Westcott
|
550947fb0b
|
Reorganise wagtailsnippets.permissions to only consider add/edit/delete as granting access to the snippet admin area
|
2015-08-15 21:22:38 +02:00 |
|
Matt Westcott
|
2110110d75
|
Apply appropriate permission checks for adding / changing / deleting snippets.
Previously, *any* permission on the model would be counted as 'user can edit'.
|
2015-08-15 21:22:38 +02:00 |
|
Karl Hobley
|
d258ddf22d
|
Use MetaField classes in RelatedField
|
2015-08-15 18:18:01 +01:00 |
|
Karl Hobley
|
82464f6cdd
|
Removed serialize_fields method
|
2015-08-15 18:18:00 +01:00 |
|
Karl Hobley
|
dd37d3f5ff
|
Made page parent into a DRF field
This adds a bit of messy code into endpoints.py. I'll clean that up in a later PR
Ref: https://github.com/torchbox/wagtail/pull/1579#discussion_r36741886
|
2015-08-15 18:18:00 +01:00 |
|
Karl Hobley
|
a6462a3ab7
|
Made "meta" its own field type
Ref: https://github.com/torchbox/wagtail/pull/1579#discussion_r36741624
|
2015-08-15 18:18:00 +01:00 |
|
Karl Hobley
|
8d6c200e88
|
Let DRF handle the id field
Ref: https://github.com/torchbox/wagtail/pull/1579#discussion_r36741624
|
2015-08-15 16:35:00 +01:00 |
|
Matt Westcott
|
8c583e68d8
|
decorate wrapper functions with functools.wraps
|
2015-08-15 16:51:55 +02:00 |
|
Matt Westcott
|
a8e7200b1a
|
use triple-quoted string for docstring
|
2015-08-15 16:46:37 +02:00 |
|
Matt Westcott
|
f8e08929eb
|
Remove unused import of ContentType
|
2015-08-15 02:39:31 +02:00 |
|