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

15914 Commits

Author SHA1 Message Date
Andy Babic
e79a64bce4
Move zero/1 item handling from get_renditions() to create_renditions() 2023-06-29 16:34:19 +01:00
Andy Babic
3a8dbd0a28
Use multiple threads for rendition generation 2023-06-29 16:34:19 +01:00
Andy Babic
6e604cb278
Add tests for Image.get_renditions() (#9550) 2023-06-29 16:34:12 +01:00
Andy Babic
659c46042e
Add documentation for Image.get_renditions() (#9550) 2023-06-29 16:22:16 +01:00
Andy Babic
0f84c66363
Update find_existing_rendition() to utilise find_existing_renditions() (this is fine because these methods are self-contained) 2023-06-29 16:22:16 +01:00
Andy Babic
feb6aea70d
Implement get_renditions(), find_existing_renditions() and create_renditions() to mirror get_rendition(), find_existing_rendition() and create_rendition() 2023-06-29 16:22:16 +01:00
Andy Babic
3e23ae32e0
Update generate_rendition_file() to support rendition generation from an existing in-memory file 2023-06-29 16:22:16 +01:00
Andy Babic
08984d8b02
Update find_existing_rendition() to utilise _get_prefetched_rendition() and renditions_cache 2023-06-29 16:22:16 +01:00
Andy Babic
6862478514
Rewrite get_rendition() to utilise _add_to_prefetched_renditions() and renditions_cache 2023-06-29 16:22:16 +01:00
Andy Babic
a7d7b7fef8
Add utils to help reduce code duplication 2023-06-29 16:22:16 +01:00
LB Johnston
3145234b07 Add changelog for #10616 2023-06-29 18:05:45 +10:00
zerolab
d88b3f8257 Convert the CONTRIBUTORS file to Markdown 2023-06-28 20:50:12 +10:00
Sébastien Corbin
5dcf8e4a27
Fix description when locked by system 2023-06-28 10:16:24 +01:00
Matt Westcott
d4eb3a2fb4 Release note for #10569 2023-06-27 19:00:41 +01:00
Sage Abdullah
71666a7019 Apply suggestions from code review 2023-06-27 18:59:25 +01:00
Sage Abdullah
02d9771ab4 Update upgrade considerations on GroupPagePermission.permission_type 2023-06-27 18:59:25 +01:00
Sage Abdullah
0d9d29cd73 Fill permission_type when creating GroupPagePermission objects
This is not necessary, but it's nicer than leaving it null
2023-06-27 18:59:25 +01:00
Sage Abdullah
db6f110bf0 Fix outdated 'edit' permission_type value in GroupPagePermission's system check 2023-06-27 18:59:25 +01:00
Sage Abdullah
692491bc1b Add tests for GroupPagePermission's old and new permission formats 2023-06-27 18:59:25 +01:00
Sage Abdullah
a286cc5306 Add system check to automatically fill GroupPagePermission.permission 2023-06-27 18:59:25 +01:00
Sage Abdullah
b1c07d1bef Enforce GroupPagePermission's permission or permission_type is not null 2023-06-27 18:59:25 +01:00
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