Thibaud Colas
aa070ef08e
Log accessibility checker results when present
2024-07-31 10:43:07 +02:00
Thibaud Colas
a684273227
Re-instate accessibility check selectors in CMS. Fix #12157
2024-07-31 10:43:07 +02:00
Matt Westcott
b34f8b79a1
Release note for #12155
2024-07-29 18:36:43 +01:00
Sage Abdullah
ac480f97ae
Cache available time zones
...
From zoneinfo.available_timezones() docs:
https://docs.python.org/3/library/zoneinfo.html#zoneinfo.available_timezones
This function may open a large number of files, as the best way to determine if a file on the time zone path is a valid time zone is to read the “magic string” at the beginning.
2024-07-29 18:31:30 +01:00
Sage Abdullah
dfe9638e7d
Replace pytz.common_timezones with zoneinfo.available_timezones
...
and remove pytz dependency
2024-07-29 18:31:30 +01:00
Sage Abdullah
b757524708
Do not suggest using the custom user model's app config as the custom wagtail.users app config
...
Doing so would mean the "models" module of the app that contains the
custom user model will be used in favour of the models module of the
wagtail.users app, which contains the UserProfile model. As a result,
the UserProfile model becomes mistakenly picked up by the wagtailcore
app, creating a bogus migration when makemigrations is run.
This partially reverts the docs to the version before
449a48d7f9
, in particular the paragraphs
about creating the custom AppConfig subclass for wagtail.users.
2024-07-29 17:35:08 +01:00
Matt Westcott
fa8f9415c9
Release note for #12084
2024-07-29 15:59:27 +01:00
Matt Westcott
a6a1b942ae
Give meaningful error when using SnippetChooserBlock on a non-snippet model
...
Ref #11702 - this is identified as a common cause of AttributeErrors during StreamField block serialization.
2024-07-29 15:30:17 +01:00
Matt Westcott
ee374b40bc
Prevent AttributeErrors thrown within StreamField block serialization from being masked
...
Ref #11702 . Generally, the first call to _build_block_json happens when accessing the `media` property of the widget. Django wraps this in a try/except AttributeError to guard against the widget not defining a `media` property, so if an AttributeError occurs during the `JSContext.pack` operation, the error will be suppressed and the BlockWidget left in an invalid state where `_js_context` is defined but `_block_json` is not.
Fix this by wrapping exceptions raised during `JSContext.pack` with a ValueError (which is probably less likely to be caught), and updating BlockWidget to not assume that `_js_context` being defined implies `_block_json` is defined.
2024-07-29 15:30:17 +01:00
Sage Abdullah
a5bb99bf67
Fix duplicated rich text input inside choosers ( #12173 )
...
Fixes #12002
2024-07-29 15:08:33 +01:00
Sage Abdullah
4f7db41030
Ensure submit buttons inside dialogs also trigger the overwrite confirmation dialog
2024-07-29 07:43:05 +01:00
Sage Abdullah
7eabf7eeb9
Clarify overwrite dialog message and remove reference to model name
...
Change 'session' to 'window' and remove mention of model name to avoid
issues with gendered languages
2024-07-29 07:17:53 +01:00
Sage Abdullah
f21d8181ed
Revert "Use the proper content type for confirmation messages"
...
This reverts commit 6c44d6113c
.
2024-07-29 07:17:53 +01:00
Matt Westcott
efc419a3a1
Use Nathanaël Jourdane's full name
2024-07-26 10:34:23 +01:00
Matt Westcott
4bed63dbb7
Prevent deconstruct_with_lookup from breaking on ListBlock subclasses with custom constructors
...
Fixes #12164
2024-07-25 15:28:39 +01:00
Matt Westcott
42c566b19b
Remove note about database search not ordering by relevance
...
This text existed since Wagtail 1.x and is referring to the original database backend that just did substring matches (which is now the fallback backend), before we supported database-backed full-text search.
2024-07-24 22:31:53 +01:00
Matt Westcott
526c7da018
Make StreamField migration a headline release note for 6.2
2024-07-23 11:56:34 +01:00
Thibaud Colas
4616501fb9
Reorder and rewrite 6.2 release notes
2024-07-23 10:51:44 +01:00
Matt Westcott
ed5749ca1e
Release notes for #12149 and #12150
2024-07-23 10:15:30 +01:00
Matt Westcott
f7fa20e600
Upgrade Sphinx to 7.3; use newer syntax for no-index directive and --fail-on-warning switch
2024-07-23 10:13:03 +01:00
Matt Westcott
80b1ebe40b
Apply suggested rewrites from pyupgrade for Python 3.9 and up
...
```
git ls-files --others --cached --exclude-standard -- '*.py' | xargs pyupgrade --py39-plus
```
2024-07-23 10:12:45 +01:00
Matt Westcott
4ad2527824
Use correct package name libmariadb-dev for Debian bookworm
2024-07-23 10:12:45 +01:00
Matt Westcott
cc1d4924bb
Remove guard on usedforsecurity kwarg
...
This kwarg is always accepted as of Python 3.9 (see https://docs.python.org/3.10/library/hashlib.html#hash-algorithms )
2024-07-23 10:12:45 +01:00
Matt Westcott
a8a29201c9
Drop support for Python 3.8
2024-07-23 10:12:45 +01:00
Sage Abdullah
012cd99c1b
Release note for #12017
2024-07-22 17:21:58 +01:00
Sage Abdullah
8217124799
Add default next_url value in form submissions delete view
2024-07-22 17:13:54 +01:00
Matthias Brück
4bfab460a4
Add next parameter to form submission delete view and bulk action
2024-07-22 16:35:27 +01:00
Matthias Brück
74df95d049
Revert 8e106f4
and move paginate_queryset() to BaseListingView.
2024-07-22 14:46:46 +01:00
Matt Westcott
0e60590676
Fix no-index directive for Sphinx 7.4.7
2024-07-22 14:21:16 +01:00
Matt Westcott
9cd2005a09
Add release note stubs for 6.3
2024-07-22 13:43:34 +01:00
Matt Westcott
6d6ec7762d
Version bump to start work on 6.3
2024-07-22 13:43:34 +01:00
Matt Westcott
e1f9d97238
Remove versionadded/versionchanged notes for 6.1
2024-07-22 13:43:34 +01:00
Matt Westcott
9f518a007d
Remove unused heading from 6.2 upgrade notes
2024-07-19 16:50:52 +01:00
Matt Westcott
99f3df6d55
Generate new strings for translation
2024-07-19 16:32:39 +01:00
Matt Westcott
abdc63ba11
Fetch new translations from Transifex
2024-07-19 16:25:59 +01:00
SebCorbin
ca5d54cb89
Fix check when using FORMAT_MODULE_PATH ( #12006 )
...
Fixes #12005
2024-07-19 15:56:53 +01:00
Thibaud Colas
9f246d5eae
Unlocalize ping interval value
2024-07-19 13:14:30 +01:00
Thibaud Colas
c569e08d7d
Release notes for #12099
2024-07-19 13:14:30 +01:00
Sage Abdullah
f8564055b1
Add WAGTAIL_EDITING_SESSION_PING_INTERVAL setting
2024-07-19 13:14:30 +01:00
Sage Abdullah
78cfab1662
Use non-translatable placeholders for the initial render of the overwrite changes dialog
2024-07-19 13:14:30 +01:00
Sage Abdullah
3f4566dfa3
Destroy tippy on DropdownController disconnect
2024-07-19 13:14:30 +01:00
Sage Abdullah
8845a8091e
Improve display of editing sessions on smaller screens
2024-07-19 13:14:30 +01:00
Sage Abdullah
52cf4de58c
Use lighter shade of red for unsaved changes indicator in dark mode
2024-07-19 13:14:30 +01:00
Sage Abdullah
6689c2abdd
Fix warning icon filler for custom font sizes
2024-07-19 13:14:30 +01:00
Sage Abdullah
28006a13c3
Use has-edits-value to test w-action#forceReload with w-unsaved
2024-07-19 13:14:30 +01:00
Sage Abdullah
2a47ad1da2
Rename w-editing-sessions__session--latest to w-editing-sessions__session--saved
2024-07-19 13:14:30 +01:00
Sage Abdullah
756913c44d
Restore ping effect for session with latest revision
...
Was lost when refactoring the styles to a separate component because @apply doesn't work with custom classes
2024-07-19 13:14:30 +01:00
Sage Abdullah
7d5252200f
Only make the reload button show the 'unsaved changes' dialog if there are unsaved changes
2024-07-19 13:14:30 +01:00
Sage Abdullah
7e024f42ce
Add wagtail_userprofile to select_related in editing sessions ping view
2024-07-19 13:14:30 +01:00
Sage Abdullah
72934a5049
Fix spacing in editing sessions dialog buttons
2024-07-19 13:14:30 +01:00