0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 01:22:07 +01:00
Commit Graph

11917 Commits

Author SHA1 Message Date
Matt Westcott
9ee21b9c9c Add hidden fields to keep track of deleted columns 2021-10-15 14:20:56 +01:00
Matt Westcott
47ee7df270 implement retrieving typed table block from database 2021-10-15 14:20:56 +01:00
Matt Westcott
1b1ee32cf7 Implement saving to database 2021-10-15 14:20:56 +01:00
Matt Westcott
8bd1801103 Add hidden field for column ordering 2021-10-15 14:20:56 +01:00
Matt Westcott
caefa52941 Add a hidden field for column type 2021-10-15 14:20:56 +01:00
Matt Westcott
da14ebaf7c implement setState 2021-10-15 14:20:56 +01:00
Matt Westcott
44d89d330d Add header inputs 2021-10-15 14:20:56 +01:00
Matt Westcott
2b76ce0db0 correct initialisation of cell ID prefixes and initial state 2021-10-15 14:20:56 +01:00
Matt Westcott
614c23c9a0 Typed table block - initial block class and client-side mechanism for adding columns/rows 2021-10-15 14:20:56 +01:00
Karl Hobley
ff76931aa4 Change log and release note for new database search backend 2021-10-15 11:15:03 +01:00
LB Johnston
b3366749d9 update release notes 2021-10-15 19:12:17 +10:00
LB Johnston
307d0126a2 add ability to customise the pre-filled document title
- leveraging a custom DOM event provides the ability to update the title before being added to the form
- add documentation
- fixes #7508
- see also #4945
- update image docs for same behaviour to be more readable
2021-10-15 18:25:23 +10:00
Noah Hall
300163b845 replace hard-coded colors for admin filters with variables
- fixes #7584
2021-10-15 17:49:20 +10:00
Matt Westcott
29e6bbe79c Update latest.txt for 2.14.2 release 2021-10-15 01:17:56 +01:00
Matt Westcott
f7fcae0a1d Release note for #6945 2021-10-15 01:16:33 +01:00
Cynthia Kiser
8f823f8803 Corrected how we pull related group and permission objects in migration 2021-10-15 00:44:20 +01:00
Cynthia Kiser
045197da5a Tighten up conditionals in collections_user_has_any_permission_for
Co-authored-by: Andy Babic <andyjbabic@gmail.com>
2021-10-15 00:44:20 +01:00
Cynthia Kiser
6e5131c20c Fixed delete so no one can delete root collections from the admin interface 2021-10-15 00:44:19 +01:00
Cynthia Kiser
c2f3bbea00 Fixed forward migration
I was always assigning all 3 permissions to a group - even if the group had originally only had a subset of permissions to manage the entire model
2021-10-15 00:44:19 +01:00
Cynthia Kiser
f03068ca7e Clean up save_instance in edit view 2021-10-15 00:44:18 +01:00
Cynthia Kiser
ff8547bbd6 Invalid parent ids are ignored so I no longer need to add display for non-field errors 2021-10-15 00:44:18 +01:00
Cynthia Kiser
705995d051 Revert to managing permission requirements in the views rather than in the CollectionForm
Rather than disable the parent field when a user should not be able to move a collection - delete the field from the form.
2021-10-15 00:44:17 +01:00
Cynthia Kiser
851b0fc109 Refactored to put the logic for allowed parents into the CollectionForm 2021-10-15 00:44:17 +01:00
Cynthia Kiser
d37aa3acf0 If the parent field is hidden, then the error message will not display
The collections and generic edit views do not have a place to display non-field errors so added one in to the collections edit template
2021-10-15 00:44:16 +01:00
Cynthia Kiser
96129dfe51 If I disable 'parent' in the form, then I need to make it optional or the form will not save 2021-10-15 00:44:16 +01:00
Cynthia Kiser
8e46d3b068 Improved tests and removed non-standard PermissionPolicy methods 2021-10-15 00:44:15 +01:00
Cynthia Kiser
c8d2562002 Create new permission policy CollectionMangementPermissionPolicy
Also updated tests, docs, and made a migration to move from model-level permissions to new granular collection management
2021-10-15 00:44:05 +01:00
Cynthia Kiser
a84c04af19 Document add, change, delete permissions when managing permissions 2021-10-15 00:26:37 +01:00
Cynthia Kiser
c41bfe43d8 Make a new permission policy for controlling management of collections 2021-10-15 00:25:59 +01:00
Cynthia Kiser
3eeb4af834 User must have delete permission to see delete button 2021-10-15 00:25:59 +01:00
Cynthia Kiser
74d98fe031 BUGFIX Delete button had disappeared for superusers 2021-10-15 00:25:59 +01:00
Cynthia Kiser
8e27133d06 Enforce group's ability to manage sections of the collection hierarchy 2021-10-15 00:25:59 +01:00
Cynthia Kiser
2c1e37eb03 Allow groups to manage sections of the collection hierarchy 2021-10-15 00:25:58 +01:00
LB Johnston
5a7ae4280d add release notes for #7605 2021-10-15 07:07:00 +10:00
Thibaud Colas
b56d27d1a1 Fix checkboxes appearing as always checked in Windows high contrast mode 2021-10-15 06:59:51 +10:00
Thibaud Colas
c46001604b Improve checkbox keyboard focus styles without changing page layout 2021-10-15 06:59:51 +10:00
Matt Westcott
e17647e466 Formally define / use COMMENTS_RELATION_NAME as a constant on wagtail.core.models
Follow-up to #7591 as per https://github.com/wagtail/wagtail/pull/7591#issuecomment-943217628
2021-10-15 06:49:58 +10:00
Matt Westcott
b57448eeef Fill in release date for 2.14.2 2021-10-14 17:14:14 +01:00
Matt Westcott
6197ada10d Fill in release date for 2.13.5 2021-10-14 17:13:44 +01:00
Matt Westcott
871da88a7f Release note for #7524 backport in 2.13.5 2021-10-14 17:02:09 +01:00
Matt Westcott
bf14954d80 Release note for #7524 in 2.14.2 2021-10-14 17:02:02 +01:00
Matt Westcott
7eab06de10 Release note for translation fixes in 2.14.2 2021-10-14 17:01:53 +01:00
Matt Westcott
b5e7af9ebc Release note for translation fixes in 2.13.5 2021-10-14 17:01:45 +01:00
Matt Westcott
20ef0dcf7f Document the COMMENTS_RELATION_NAME constant in 2.14.2 release notes 2021-10-14 17:01:33 +01:00
Matt Westcott
d3f2305601 Document the COMMENTS_RELATION_NAME constant in 2.13.5 release notes 2021-10-14 17:01:24 +01:00
Matt Westcott
740451c351 Release note for #7591 in 2.14.2 2021-10-14 17:01:05 +01:00
Matt Westcott
80d2f2bc36 Release note for #7591 in 2.13.5 2021-10-14 16:59:34 +01:00
Matt Westcott
bfa94f81af Fetch new translations from Transifex
Fixes errors identified by check-translation-strings.py script #7604
2021-10-14 15:39:54 +01:00
Fab
77913bc220 Replace unneeded length filter
I asked the question about using the `length` filter in https://github.com/wagtail/wagtail/discussions/7598 and I'm thinking it may not be needed anymore with the current version of Django that Wagtail supports.
2021-10-14 13:25:03 +01:00
Andy Chosak
5a65cb7554 Expose preview mode to page and template rendering
Currently Wagtail defines `request.is_preview` as a way for both page
rendering and template rendering to modify logic based on whether the
page is being previewed.

If a page supports multiple preview modes, though, the information about
which mode is being previewed isn't made available. So, for example,
it's not possible to customize `Page.serve` or `Page.get_context` based
on a different preview mode. Or, consider customizing
`Page.get_template` so that it uses a different page template depending
on the mode being previewed.

This commit adds `request.preview_mode` so that the mode is available
downstream of previews, both in the page rendering logic and also in the
template itself.

A minor documentation change mentions this new property.
2021-10-14 06:47:26 +10:00