LB Johnston
f01aaccb57
Add changelog entry for #10561
2023-06-14 07:58:00 +10:00
Matt Westcott
bb3b0b6f37
Prevent crash when comparing page revisions that include MultipleChooserPanel
...
Fixes #10472
2023-06-14 07:56:08 +10:00
valnuro
5f880fd528
Add Youtube Shorts url to oembed all_providers
...
Youtube allows to use oembed for shorts video now, but the code can't accept Youtube shorts url.
2023-06-14 07:43:09 +10:00
Kevin Chung
173918c221
Revise main Getting started tutorial for clarity ( #10425 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-06-13 16:52:35 +01:00
Matt Westcott
d53a77c201
Release note for #10506 in 5.0.2
2023-06-13 13:21:50 +01:00
Matt Westcott
7feaad5e3d
Release note for #10506 in 5.1
2023-06-13 13:05:51 +01:00
LB Johnston
3ce2b5f007
Chooser modal - update spinner logic on error
...
- When errors occur on chooser modal content, find the local progress buttons that are in loading state and update the value
- Stimulus will automatically resolve all DOM changes based on the dynamic value update
- Add unit tests for functionality
- Fixes #10498
- Regression from #9910 & #10062
2023-06-13 12:59:45 +01:00
LB Johnston
35de8a98b7
Progress Controller - add backwards compatible cancelSpinner
...
- support legacy cancelSpinner global for any other code that may still rely on this
- see #10498
2023-06-13 12:59:45 +01:00
Matt Westcott
a86dddaddf
Release note for #10540
2023-06-13 11:02:42 +01:00
Matt Westcott
902681ee1f
Fix import order in wagtail/admin/views/generic/__init__.py
...
Also narrow the 'noqa' declarations to only ignore unused imports, not other errors
2023-06-13 11:02:40 +01:00
Matt Westcott
7b83142510
Don't set self.columns within get_columns
...
This is being done from the `setup` method.
2023-06-13 11:02:33 +01:00
Matt Westcott
81836fc56f
Reinstate template for groups/index.html
...
As per https://github.com/wagtail/wagtail/pull/10540/files#r1226830421 - while we are using generic/index.html unmodified here, giving it a dedicated template file allows people to override it if desired.
2023-06-13 11:02:27 +01:00
Matt Westcott
60f371fae9
Change UsageView to inherit directly from BaseListingView rather than IndexView
2023-06-13 11:02:23 +01:00
Matt Westcott
a0036dd3cb
Split out a BaseListingView and template from IndexView
2023-06-13 11:02:03 +01:00
Thiago C. S. Tioma
ce620bf57b
feat: add marking for LTS releases ( #10550 )
...
Fixes #10508
2023-06-13 10:41:25 +01:00
Matt Westcott
de825161a2
Enable flake8-blind-except and flake8-comprehensions checks and fix/tag existing failures
2023-06-13 10:36:21 +01:00
Matt Westcott
c1333d8c46
Remove or narrow remaining noqa directives
2023-06-13 10:36:21 +01:00
Matt Westcott
862a57d2f7
Enable ruff checks for print statements
2023-06-13 10:36:21 +01:00
Matt Westcott
9fe13dfe9f
Narrow down 'noqa' directives on imports to specify F401 / F403
...
This prevents them from masking unrelated linting errors such as isort order.
2023-06-13 10:36:21 +01:00
Matt Westcott
d74fdee3a5
Configure ruff to apply isort rules
...
Also fix existing failures
2023-06-13 10:36:21 +01:00
Matt Westcott
2a38248c6b
Fix gettext calls in wagtail.admin.views.generic.models that should be gettext_lazy ( #10539 )
...
Fix some gettext calls that should be gettext_lazy, because they're evaluated at the module level rather than per-request - getting this wrong means that these strings will always be in whatever language was set at the server level at startup, ignoring user preferences.
2023-06-12 14:39:05 +01:00
Sage Abdullah
8bc31fc31c
Unpin django-taggit when testing against Django main
2023-06-12 14:35:41 +01:00
Sage Abdullah
52877cad10
Fix check for lazily evaluated page_description
...
_delegated_text no longer exists in Django as of ee36e101e8
This is also how Django internally checks for lazily-translated strings (search for Promise in its codebase)
2023-06-12 14:35:41 +01:00
Sage Abdullah
1b71ab8f7c
Fix incorrect import of total_ordering
2023-06-12 14:35:41 +01:00
LB Johnston
380e04a2fb
Small typo in JSDoc - gettext
...
- The function created is pluralIdx (capital I), the underlying Django function is pluralidx
- Update our gettext JSDoc to align with our usage of pluralIdx (capital I)
2023-06-12 12:14:11 +01:00
Thibaud Colas
2163e02933
Release notes for #10449
2023-06-12 10:55:12 +01:00
Thibaud Colas
268b038ea8
Update documentation for color customisations
2023-06-12 10:55:12 +01:00
Thibaud Colas
40335ba9d1
Add tests to help with maintenance of theme color tokens
2023-06-12 10:55:12 +01:00
Thibaud Colas
fb793f2b4b
Remove all unused color tokens
2023-06-12 10:55:12 +01:00
Thibaud Colas
e0f3f05ffd
Remove usage of color tokens which are duplicates
2023-06-12 10:55:12 +01:00
Matt Westcott
55a5f16a8e
Release note for #10533
2023-06-10 13:09:33 +01:00
Matt Westcott
fbf1ebe346
Update pagination behaviour on page chooser to match Django standard
2023-06-10 01:29:07 +01:00
Matt Westcott
5e2597cb40
Update pagination behaviour on page explorer view to match Django standard
2023-06-10 01:26:06 +01:00
Matt Westcott
8422c38ff9
Update pagination behaviour on search promotions index to match Django standard
2023-06-10 00:36:58 +01:00
Matt Westcott
e6add87cd0
Update pagination behaviour on wagtail.contrib.forms to match Django standard
2023-06-10 00:15:13 +01:00
Matt Westcott
2b9ba182c2
Update pagination behaviour on choosers to match Django standard
2023-06-09 22:39:47 +01:00
Matt Westcott
0e73399dd2
Update pagination behaviour on images index to match Django standard
2023-06-09 21:27:59 +01:00
Matt Westcott
62139a92b0
Update pagination behaviour on page search to match Django standard
2023-06-09 21:24:55 +01:00
Matt Westcott
f0723eafd5
Update pagination behaviour on redirects index to match Django standard
2023-06-09 21:07:25 +01:00
Matt Westcott
b6b719709a
Update pagination behaviour on search query chooser to match Django standard
2023-06-09 21:02:37 +01:00
Matt Westcott
1fe96e208d
Remove bogus pagination test from sites index
...
The sites index is not paginated, and never has been. All this test is doing is confirming that we can pass some random unrecognised URL parameter to the page and it will have no effect. :-)
2023-06-09 20:47:25 +01:00
Matt Westcott
8e106f40c6
Remove custom paginate_queryset method on IndexView
...
The sole purpose of this was to preserve the historical behaviour of accepting non-integer page numbers, which was mandated by the unit tests for no clear reason - it's likely that these tests were written to reflect the existing behaviour rather than the desired behaviour. Dropping this (and updating the tests) brings the behaviour in line with Django's standard.
2023-06-09 20:33:25 +01:00
NikilTn
7b3b55ff93
added __eq__ for comparison of the source of RichText and also added compare test case
...
Fixes #10523
2023-06-09 14:23:58 +01:00
Matt Westcott
bd76b020af
Release note for #10524
2023-06-09 14:18:27 +01:00
Matt Westcott
da966ad04b
Use add_url for no-results messages on groups/users
2023-06-09 14:18:26 +01:00
Matt Westcott
d812767715
Add tests for results-only users/groups endpoints
2023-06-09 14:18:26 +01:00
Matt Westcott
38cb09102a
Inherit the headerSearch JS snippet from generic/index.html on users/index.html
2023-06-09 14:18:26 +01:00
Matt Westcott
6076e634a7
Use results endpoints for user index search, instead of switching on x-requested-with
2023-06-09 14:18:26 +01:00
Matt Westcott
315598c41a
Add provision for no-results message in generic/index_results.html, and use that to simplify groups/results.html
2023-06-09 14:18:26 +01:00
Matt Westcott
bea42bdd6a
Drop groups/index.html template, as it's functionally identical to generic/index.html
2023-06-09 14:18:26 +01:00