Matt Westcott
05d40271ae
Test against psycopg 2 and 3
2024-08-29 18:04:06 +01:00
Matt Westcott
0d8b8386e2
Refactor StreamField get_prep_value for closer alignment with JSONField ( #12269 )
2024-08-29 18:04:06 +01:00
Matt Westcott
7051363f9f
Change Twitter to X in security.md
2024-08-27 15:32:17 +01:00
Matt Westcott
c574954a0a
Release note for #12244 in 6.2.2
2024-08-27 15:06:15 +01:00
Matt Westcott
ce5ba9efdf
Add release note template for 6.2.2
2024-08-27 15:06:13 +01:00
Matt Westcott
50c4d32a54
Release note for #12251
2024-08-27 14:16:03 +01:00
Matt Westcott
2b96c3e364
Add clarifying comment to Column
2024-08-27 14:15:34 +01:00
Matt Westcott
b670a3251b
Remove now-unnecessary str wrapper
2024-08-27 14:15:34 +01:00
Matt Westcott
490acebcf5
Only patch number formatting functions if WAGTAIL_CHECK_TEMPLATE_NUMBER_FORMAT environment variable is set
...
The patch for filesizeformat in particular is quite heavyweight, and we don't want our CI to never test against the real version (for example, if it changes in a future Django release).
2024-08-27 14:15:34 +01:00
Matt Westcott
ff7e016eb5
Patch number formatting functions during tests to flag up potential USE_THOUSAND_SEPARATOR issues
2024-08-27 14:15:34 +01:00
Matt Westcott
85c0047268
Audit all uses of localized/unlocalized numbers in templates
...
Address bugs caused by the `USE_THOUSAND_SEPARATOR=True` setting inserting commas where they are invalid, such as image width/height attributes. All numbers output on templates are now passed through one of `|unlocalize` (for numbers that must never have separators), `|intcomma` (for numbers displayed to users which should always include separators) or `|localize` (for when the choice is delegated to the project-wide setting).
2024-08-27 14:15:32 +01:00
Matt Westcott
cbf06df4eb
Prevent versioned_static failure when INSTALLED_APPS is a tuple
...
Fixes #12253
2024-08-27 08:55:05 +01:00
Matt Westcott
6857f6431a
Release note for #12217
2024-08-23 16:18:18 +01:00
Jake Howard
db331618b4
Ensure hashes are the correct length
2024-08-23 16:12:10 +01:00
Jake Howard
3fd329339e
Use `INSTALLED_APPS` as a unique-ish id for masking version
2024-08-23 16:12:10 +01:00
Jake Howard
f263f2a40f
Use shorter digest for version hash
...
This helps protect the secret key by using a smaller digest, ensuring the previously-discarded data is included in the output hash. Using a salt and personalization also goes to further obscure the values.
2024-08-23 16:12:10 +01:00
Jake Howard
35c0d5d6e0
Remove secret key from icon sprite hash
...
This is just the hash of a file returned to the user - there's no need to salt it
2024-08-23 16:12:10 +01:00
Matt Westcott
5014d50490
Release note for #12226
2024-08-23 15:54:02 +01:00
Sage Abdullah
a99df18f6c
Optimise logic for showing 'Translate' button on the page listing
...
External translation packages e.g. wagtail-localize can make use of the annotation to get the same performance benefit
2024-08-23 15:53:16 +01:00
Sage Abdullah
c5a90d3c7c
Add missing globe icon in 'Translate' button in page listing dropdown
2024-08-23 15:53:16 +01:00
Sage Abdullah
c46e07ef63
Use approved_schedule property for detecting ScheduledForPublishLock
...
We only need to know about the existence of a scheduled revision,
and not the revision itself.
This method is used by 'PagePermissionTester.can_unpublish', which
in turn is used by the 'Unpublish' button in the page listing 'more'
button. As a result, this method is run on every single item in the
listing.
We already have annotate_approved_schedule to optimise the display
of the 'scheduled' status tag (for pages). Use the approved_schedule
property so we can reuse that annotation instead of performing an
N+1 query.
2024-08-23 15:53:16 +01:00
SebCorbin
d0098f394d
Fix duplicate class attribute in image chooser ( #12245 )
2024-08-23 15:40:07 +01:00
vossisboss
7582a9932a
Adding updated tutorial link requested by DIVIO.
2024-08-23 15:31:24 +01:00
SebCorbin
b0b33514dd
Fix typo in attribute ( #12246 )
2024-08-23 15:28:26 +01:00
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