Matt Westcott
77b9ac0582
Change pagination include on pages index view to match generic listings
2023-07-11 10:28:12 +01:00
Matt Westcott
32ff36446b
Have pages.BulkActionsColumn inherit from BulkActionsCheckboxColumn
2023-07-10 15:21:46 +01:00
Matt Westcott
f014ab6a34
Restore 'unpublished' row style
2023-07-10 15:21:46 +01:00
Matt Westcott
69b7ed0815
Use table component for page search results
2023-07-10 15:21:46 +01:00
Matt Westcott
38f0bda70f
Change pagination include on page search to match generic listings
2023-07-10 15:21:46 +01:00
Matt Westcott
71b9fb13b9
Convert search view to a django ListView
2023-07-10 15:21:46 +01:00
Matt Westcott
9abd773cd3
Use PermissionCheckedMixin in place of user_passes_test
2023-07-10 15:21:46 +01:00
Matt Westcott
d554cbe310
Use a distinct URL endpoint for AJAX search results
2023-07-10 15:21:46 +01:00
Matt Westcott
6040ab32b7
Convert page search to a class-based view
2023-07-10 15:21:46 +01:00
Sébastien Corbin
853aad4305
Fix incorrect override of PagePermissionHelper.user_can_unpublish_obj() in ModelAdmin
2023-07-07 16:35:46 +01:00
Alex Morega
ccc44035d9
Refactor test setup for #10638
2023-07-07 16:19:47 +01:00
LB Johnston
04d1e8162b
Migrate header search to a Stimulus controller (w-swap)
...
- Removes the jQuery slide animation so content will be instantly replaced
- Removes the autofocus behaviour on the search fields as this is not helpful for screen readers / keyboard control
- Includes support for `window.header` if provided alongside dynamic adding of data-* attributes if not included
- Base implementation for #9950
- Co-authored-by: sage <laymonage@gmail.com>
2023-07-06 20:10:31 +10:00
Yuekui
1ea8a0e360
Increase Pillow dependency range to include 10.x
...
- Drop support for Pillow versions below `9.1.0`
- Fixes #10631
2023-07-06 17:09:28 +10:00
LB Johnston
91a3c6d2c2
Add changelog for #10632
2023-07-06 16:53:46 +10:00
Yuekui
a9ced69b2a
Move django-filter version upper bound to 24
2023-07-06 16:52:11 +10:00
Thibaud Colas
f4ea0156a2
Implement new Draftail customisation APIs
...
- Fixes #5580
- Remove TSLA/TWTR/BTC references and replace with clean energy FSLR / NEE stocks
2023-07-06 13:14:54 +10:00
LB Johnston
4f012d75ec
Add changelog & contributors for #10638
...
- Original work done via #10413
2023-07-06 12:39:41 +10:00
Alex Morega
60ed6d25c9
Add test for fix against #10411
2023-07-06 12:39:41 +10:00
Henry Harutyunyan
3da4b686eb
Fix removing Metadata in API
...
Fixes #10411
2023-07-06 12:39:41 +10:00
LB Johnston
8251072e6d
Replace usage of innerHTML with textContent
...
- Stimulus CountController content is programatically generated but best to avoid writing HTML accidentally
- ChooserModel field required label should avoid risk of translations with HTML
- Image focal point chooser's label does not need to support HTML
- FieldBlock us using h util but this can be avoided by built in browser escaping when innerText is used
- focal-point-chooser gets value from its set up but we should avoid innerHTML if we can
2023-07-06 12:26:43 +10:00
LB Johnston
1e271afc92
Chore - remove unused global declaration
...
- Was triggering an Eslint warning
2023-07-05 08:13:38 +10:00
SebCorbin
d52484f524
Auto-select single block in StreamField
...
- Closes #3998
2023-07-04 17:38:45 +10:00
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