0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-22 11:07:57 +01:00
Commit Graph

17758 Commits

Author SHA1 Message Date
Matt Westcott
a59a2d0585 Update latest.txt for 6.2.1 2024-08-20 16:48:00 +01:00
Matt Westcott
688d833451 Fill in release date for 6.2.1 2024-08-20 16:20:46 +01:00
Matt Westcott
1ebe9a1a13 Fetch new translations from Transifex 2024-08-20 16:20:26 +01:00
Matt Westcott
9c921481dd Release note for #12237 2024-08-20 16:04:15 +01:00
Matt Westcott
a7d243b9b6 Ensure that moderators without explicit edit permission on snippets are granted access to the ping endpoint
Fixes #12209
2024-08-16 13:21:37 +02:00
Matt Westcott
deaf45309a Ensure that moderators without explicit edit permission on pages are granted access to the ping endpoint 2024-08-16 09:36:15 +01:00
Matt Westcott
df08f99945 Avoid importing custom user models at load time in wagtail.admin.models
As per https://docs.djangoproject.com/en/5.0/topics/auth/customizing/#referencing-the-user-model , module-level code such as ForeignKey definitions should use `AUTH_USER_MODEL` rather than `get_user_model()`.

Probably fixes #12228 (unconfirmed)
2024-08-15 11:08:24 +01:00
Matt Westcott
bd87ccf517 Release note for #12223 2024-08-13 20:23:56 +01:00
Sage Abdullah
986c08789a Add small gap between permissions in 'Custom permissions' column 2024-08-13 19:14:54 +01:00
Sage Abdullah
1825f5c60f Fix error when shift+clicking across groups in object permissions table 2024-08-13 19:14:54 +01:00
Sage Abdullah
cf90275196 Move publish, lock, and unlock permissions to 'Custom permissions' column
These permissions only show up for models that have the corresponding
mixins enabled, which are likely to be the minority – which results in
the other rows having an empty cell for the column. This takes up space
in an already crowded table.

Move them to the "Custom permissions" column so we can reclaim the space
for other, more important columns.
2024-08-13 19:14:54 +01:00
Sage Abdullah
f8589b3dcd Fix text alignment of model names in object permissions section 2024-08-13 19:14:54 +01:00
Matt Westcott
72b965cd94 Formalise support for Django 5.1 2024-08-12 11:26:44 +01:00
Sage Abdullah
e83d23ca2a Fix broken task type filter in workflow task chooser modal (#12213)
Fixes #12210
2024-08-08 18:52:26 +01:00
Matt Westcott
0cf52a6175 Remove pre-Django 4.2 fallback code from JSONField null handling migration 2024-08-08 16:56:48 +01:00
Matt Westcott
4e6eaab241 Remove Django <4.2 fallback code from images migrations
(these files were using CRLF line endings for some reason; changed to LF)
2024-08-08 16:56:48 +01:00
Matt Westcott
c7a42c4b34 Update django-taggit dependency to allow 6.0.x (#12220) 2024-08-08 16:19:41 +01:00
Matt Westcott
e06ec6d28e Generate new strings for translation 2024-08-07 10:11:19 +01:00
Jake Howard
22fe143d36 Purge frontend cache when modifying redirects (#12185) 2024-08-06 19:25:28 +01:00
Matt Westcott
ca63bdf5ee Release note for #12156 2024-08-06 17:52:21 +01:00
Sage Abdullah
afea1e1599 Allow reordering pages that violate the parent's subpage_types 2024-08-06 17:42:02 +01:00
Andy Babic
3935770020 Don't prevent reordering of subpages when there are no 'creatable' page types: That mechanism is to prevent manual creation, but it doesn't mean that children aren't editable 2024-08-06 17:42:02 +01:00
Matt Westcott
d327a0dd50 Handle child_block being passed as a kwarg in ListBlock.deconstruct_with_lookup (#12208)
Fixes #12202
2024-08-06 14:37:33 +01:00
Matt Westcott
5281432127 Add release notes template for 6.2.1 2024-08-06 14:37:23 +01:00
Matt Westcott
82aa1c1a61 Add Nayanshi Singh to contributors 2024-08-05 13:55:12 +01:00
NayanshiSingh
bf91e185bf Update twitter link in support docs to x.com (#12205)
Fixes #12206
2024-08-05 13:54:37 +01:00
NayanshiSingh
a8dcf2a492 Twitter link updated to x (#12205)
Fixes #12204
2024-08-05 13:54:26 +01:00
Vince Salvino
067ebc01ec Add example date/time formatting for the Wagtail admin settings. (#12083) 2024-08-02 13:54:13 +01:00
Matt Westcott
8a590283a9 Remove Wagtail Space promotion 2024-08-02 09:51:51 +01:00
parasite-68
b767533acd Changed Twitter links in readme to x.com (#12199)
Fixes #12198
2024-08-02 09:49:40 +01:00
Matt Westcott
93368f04c2 Update latest.txt for 6.2 2024-08-01 14:59:44 +01:00
Matt Westcott
98705762bf Fill in release date for 6.2 2024-08-01 13:02:20 +01:00
Matt Westcott
0ebcda6533 Fetch new translations from Transifex 2024-08-01 13:01:56 +01:00
smark-1
6672f4b518
Fix typo in admin url finder docs (#12193) 2024-08-01 11:48:20 +01:00
DK
a11414447d
Fix typo in 6.2 release notes and changelog (#12192)
Co-authored-by: Daniel Kirkham <d.kirkham@kirkham.id.au>
2024-08-01 11:44:56 +01:00
Vaughn Dickson
0dc233b0fa Add missing getTextLabel implementation for BaseDateTimeWidget, so the value is displayed if it is available instead of a JavaScript 'null'. (#12162)
Fixes #12094
2024-07-31 18:05:37 +01:00
Sage Abdullah
aadad14ee8
Improve styles for overly long selectors in checks results 2024-07-31 11:10:49 +01:00
Thibaud Colas
96db233bf0 Disable pointer events on checker highlights to simplify DevTools inspections 2024-07-31 10:43:07 +02:00
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