Sage Abdullah
1e578c8c6a
Allow one of permission or permission_type to be defined when creating GroupPagePermission objects
2023-06-27 18:59:25 +01:00
Sage Abdullah
b4cb61aaf6
Reinstate nullable GroupPagePermission.permission_type and make Permission FK nullable
2023-06-27 18:59:25 +01:00
Sage Abdullah
34adc4c657
Make GroupPagePermission.permission migrations reversible
2023-06-27 18:59:25 +01:00
Sage Abdullah
d5eca7e436
Fix remaining 'edit' -> 'change' after rebase
2023-06-27 18:59:25 +01:00
Sage Abdullah
1956b75143
Add upgrade considerations for GroupPagePermission changes
2023-06-27 18:59:25 +01:00
Sage Abdullah
40cd588de2
Sync Page.Meta.permissions with PAGE_PERMISSION_TYPES
2023-06-27 18:59:25 +01:00
Sage Abdullah
8203b4d83e
Make sure that permission checkboxes and table header order is consistent
2023-06-27 18:59:25 +01:00
Sage Abdullah
599d4e72cf
Remove unused formset.permission_types code in workflow_pages_formset.html template
...
The workflow pages formset never defines permission_types (and has no business to do so).
It's likely that this template was copy-pasted from the page_permissions_formset.html template.
2023-06-27 18:59:25 +01:00
Sage Abdullah
bd3e79402e
Update GroupPagePermission test fixtures to use Permission's natural key
2023-06-27 18:59:25 +01:00
Sage Abdullah
d9b9c4b9f5
Fix GroupPagePermission.objects.filter() that still uses permission_type in tests
2023-06-27 18:59:25 +01:00
Sage Abdullah
0c53e71955
Update GroupPagePermission's 'edit' to 'change' in tests
2023-06-27 18:59:25 +01:00
Sage Abdullah
f646e6a55f
Allow GroupPagePermission.objects.create() to use permission_type
...
There are tests that rely on the old permission_type field.
This allows those tests to keep working with minimal (if any) changes
2023-06-27 18:59:25 +01:00
Sage Abdullah
0ab7c82abd
Fix PagePermissionsForm to use Django's Permission model
2023-06-27 18:59:25 +01:00
Sage Abdullah
8bb52cffd1
Move _get_permission_objects_for_actions to BaseDjangoAuthPermissionPolicy
2023-06-27 18:59:25 +01:00
Sage Abdullah
9c602bc9a8
Use get_permission_codename in permission policies
...
Also change PagePermissionPolicy to subclass OwnershipPermissionPolicy
as it technically implements the ownership logic
2023-06-27 18:59:25 +01:00
Sage Abdullah
bc5e0c8b5e
Fix PagePermissionPolicy to work with Django's Permission model
2023-06-27 18:59:25 +01:00
Sage Abdullah
0bf5cc336c
Add migration to enforce GroupPagePermission.permission not-null and remove permission_type field
2023-06-27 18:59:25 +01:00
Sage Abdullah
78c00f3f06
Add migration to populate GroupPagePermission.permission
2023-06-27 18:59:25 +01:00
Sage Abdullah
fe1629ed9c
Add foreign key to Django's Permission model in GroupPagePermission
2023-06-27 18:59:25 +01:00
Sage Abdullah
2e94f850c2
Add default page permissions for Django's Permission model
2023-06-27 18:59:25 +01:00
LB Johnston
1f5069758a
Remove unused window.tagit_opts declarations
...
- Additional clean up from #10102
- See #10100
2023-06-27 20:10:31 +10:00
Sage Abdullah
2eaaf0b1bd
Release notes for #10102
2023-06-27 09:25:50 +01:00
LB Johnston
150e988f4d
Migrate Tagit init JS to TagController
...
- Closes #10100
2023-06-27 09:23:01 +01:00
LB Johnston
82ca711f16
Rename initTagField to TagController
2023-06-27 09:23:01 +01:00
LB Johnston
4195f80d29
Create shared util domReady
2023-06-27 09:23:01 +01:00
Sage Abdullah
0ba6cb726c
Fix taggit/tagit autocomplete text colour in dark mode
...
- Relates to #10418
2023-06-27 08:01:57 +10:00
Vitaly Babiy
1042568e5c
Documentation - Fix mMissing Menu Prefix in example ( #10599 )
2023-06-27 07:53:52 +10:00
Jake Howard
13a350ed26
Use `constant_time_compare` to verify image signatures
2023-06-26 14:27:12 +01:00
Thibaud Colas
ff327d5318
Release notes for #10557
2023-06-26 14:03:08 +01:00
Thibaud Colas
4bd1f7b267
Add a way to hide the tooltip on click for chooser widgets
2023-06-26 13:55:09 +01:00
Thibaud Colas
466e43e571
Fix "More" dropdown for bulk actions
2023-06-26 13:55:09 +01:00
Thibaud Colas
65c37b34bc
Fix text wrapping
2023-06-26 13:55:08 +01:00
Thibaud Colas
830c7c62d8
Re-implement unit tests depending on dropdown markup
2023-06-26 13:55:08 +01:00
Thibaud Colas
586358632e
Fix color contrast for "More" bulk actions button text
2023-06-26 13:55:08 +01:00
Thibaud Colas
55fd422eb6
Remove now-unused c-dropdown / data-dropdwon implementation
2023-06-26 13:55:08 +01:00
Thibaud Colas
3b3d4ed981
Remove Tippy implementation migrated to Stimulus
2023-06-26 13:55:08 +01:00
Thibaud Colas
7516b55e83
Switch bulk actions’ "More" dropdown to new component
2023-06-26 13:55:08 +01:00
Thibaud Colas
749cd1cad8
Switch locale chooser to new dropdown component
2023-06-26 13:55:08 +01:00
Thibaud Colas
ff822babb4
Refactor "More" listing dropdowns to new dropdown component
2023-06-26 13:55:08 +01:00
Thibaud Colas
830ae5d12a
Refactor Switch locale button in side panel to dropdown component
2023-06-26 13:55:08 +01:00
Thibaud Colas
af4aab7ad3
Refactor page Actions menu to use new dropdown component
2023-06-26 13:55:08 +01:00
Thibaud Colas
2b1f13a109
Add missing exports
2023-06-26 13:55:07 +01:00
Thibaud Colas
9798306f0e
Update chooser styles to match designs
2023-06-26 13:55:07 +01:00
Thibaud Colas
1f15f52a6d
Update chooser widgets to use new dropdown component
2023-06-26 13:55:07 +01:00
Thibaud Colas
d288b2f81e
Add new dropdown component based on Tippy.js
2023-06-26 13:55:07 +01:00
Thibaud Colas
f985262959
Allow all stories within subfolders of shared templates to appear in the same section
2023-06-26 13:55:07 +01:00
Thibaud Colas
195985115a
Rename page_header_buttons template for consistency with tag name
2023-06-26 13:55:07 +01:00
Sage Abdullah
b8a7ad04a6
Release notes for #10592
2023-06-26 11:15:40 +01:00
Matt Westcott
6ee9d245d2
Use generic listing.html for page type usage view
2023-06-26 11:07:14 +01:00
Matt Westcott
ec80ede1c4
Move page-related column definitions to wagtail.admin.ui.tables.pages
2023-06-26 11:07:13 +01:00