0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00
Commit Graph

15476 Commits

Author SHA1 Message Date
Damilola Oladele
c37847a6fb
Switch the tutorial snippets example to be more understandable #10609 (#10624)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>

Also includes:

- Further tone updates based on Vale
- Address other feedback to earlier parts of the tutorial
2023-07-03 16:54:49 +01:00
Th0masCat
c7039ed9d3 Link Chooser - tel: links should prevent spaces
- Added regex operation to strip out spaces
- See spec - tel: hrefs should not have spaces https://www.rfc-editor.org/rfc/rfc3966#section-3
- Fixes #10558
2023-07-03 20:28:44 +10:00
LB Johnston
6491ae49ce Docs - Align on client-side & fix Draftail typos
- Prep for #10197
- Fix a few cases where Draftail was spelt incorrectly
- Align with `client-side` not `clientside` as this is used most commonly
- fix javascript code snippet
2023-07-03 19:18:44 +10:00
Jake Howard
ef27a27c1a Docs - Add more details to the performance page & update getting started link
- Link getting started section to elasticsearch backend, not performance page as this is more relevant.
- Mention frontend caching on performance page
- Mention prefetching image renditions on performance page
2023-07-03 08:33:23 +10:00
Sébastien Corbin
707e719d29 Cast settings' verbose_name to string
- Fix for using gettext_lazy for verbose_name on a generic setting model, you get a TypeError: __str__ returned non-string (type __proxy__)
2023-07-01 16:47:21 +10:00
Jake Howard
c2875179b3 Documentation - Clean up and update deployment page
This cleans out some very old, potentially out of scope content, and makes way for the page being much easier to contribute to and extend in future.
Move deploy tutorials to 3rd-party tutorials page
2023-07-01 16:35:57 +10:00
Damilola Oladele
a6b78724c9
Finish first batch of getting started tutorial changes (#10579)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-06-30 17:16:48 +01:00
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