Wykres commitów

15469 Commity (c5099a4dbe2b342b32ccfcfb006fff93a20d86ce)

Autor SHA1 Wiadomość Data
D.M. Oladele c5099a4dbe Revamp more of the getting started tutorial 2023-06-30 14:49:15 +01:00
Sandil Ranasinghe f2886cc647
Fix empty blocks created in migration operations 2023-06-30 11:24:55 +01:00
Sage Abdullah 9033282834
Optimise queries in collection permission policies using cache on the user object 2023-06-30 11:20:12 +01:00
zerolab d457879481
Release notes for #9550 2023-06-29 16:38:26 +01:00
zerolab 8a1b5bb492
Improve code readability
Make the return value for renditions_cache more explicit
Change variable name in create_renditions() back to 'return_value' (it might be boring, but it's clear!)
2023-06-29 16:34:19 +01:00
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