0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
Commit Graph

11904 Commits

Author SHA1 Message Date
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
Matt Westcott
ba3a527230 Release note for #7591 2021-10-13 19:10:56 +01:00
Matt Westcott
76484ac1a3 Ensure that comment data saved to revisions under the key 'comments' is restored 2021-10-13 18:50:15 +01:00
Matt Westcott
66e5e21b59 Upgrade django-modelcluster to 5.2 2021-10-13 18:50:15 +01:00
Matt Westcott
eed26307c8 Make comments relation name configurable with a setting 2021-10-13 18:50:15 +01:00
Matt Westcott
7303d7fac6 Change comments relation to wagtail_admin_comments 2021-10-13 18:50:15 +01:00
LB Johnston
196a368cdc add contributors for #7588 2021-10-13 17:54:04 +10:00
indreshp135
6e90c877ec fix issue with __prefix__ in nested inline panel
changed following:
change only first __prefix__ when multiple __prefix__ are present in
same name when orderable and blocks are nested

Co-authored-by: anirudhvs <54744932+anirudhvs@users.noreply.github.com>
Co-authored-by: CaptainIRS <36656347+CaptainIRS@users.noreply.github.com>

- fixes #7587
- fixes #5770
2021-10-13 07:37:27 +10:00
Karl Hobley
6659c286ce Remove duplicate DeprecationWarning class
(strange there was no merge conflict here)
2021-10-12 15:19:32 +01:00
Karl Hobley
e2ddd52030 Updates to docs for new database search backend
A more detailed comparison of the features supported in different
databases will come later.
2021-10-11 20:12:24 +01:00
ACMCMC
121212c6d0 Separated body and title FULLTEXT indexes 2021-10-11 20:12:24 +01:00
Karl Hobley
7a9da0c4e0 Skip ngram parser on MariaDB
Not supported yet: https://jira.mariadb.org/browse/MDEV-10267
2021-10-11 20:12:24 +01:00
ACMCMC
eaae08136f MySQL Backend 2021-10-11 20:12:24 +01:00
ACMCMC
810c7783e2 Model for the MySQL backend 2021-10-11 20:12:24 +01:00