Matt Westcott
a8b4a13920
Release note for #12382
2024-10-10 19:14:26 +01:00
LB Johnston
912c0881f9
Remove window.fileupload_opts global usage, use data attributes instead
...
jQuery data is used by the jQuery file upload widget and will automatically parse data attributes as objects/or JS primitive values - see https://api.jquery.com/data/
jquery File Upload will automatically parse the data attributes and treat as the default options for initialisation (already used for the url) - see https://github.com/blueimp/jQuery-File-Upload/wiki/API#data-attributes
- Closes #9771 - avoiding globals for UI specific configs
- Relates to #1288 - ongoing work for CSP compliance
2024-10-09 08:01:44 +10:00
LB Johnston
9cbe1a507a
Deprecate window.wagtailConfig.BULK_ACTION_ITEM_TYPE
usage in JS
...
- Avoid using a window global and inline scripts to declare the current bulk action's item time
- Deprecate the usage of `window.wagtailConfig.BULK_ACTION_ITEM_TYPE` with a release note and code comment so that it can be removed in a future release
- Update bulk actions footer template to accept a `item_type` arg, adding this to the DOM element for access within the JavaScript
- Allow a fallback on the model name for core models (e.g. page)
- Also ensure that `{{ block.super }}` is consistently added at the top of the `{% block extra_js %}` (as it is with most usage)
- Relates to #9771 and supports a future migration for bulk actions towards Stimulus
- Relates to ongoing work for CSP compliance #1288
2024-10-08 17:55:28 +10:00
Jake Howard
4727663fa6
Remove multi-line icon comments
...
Ensure multi-line comments are cleaned from custom icons in addition to just single line comments.
This doesn't affect Wagtail's, but could reduce the size of 3rd-party icons.
2024-10-02 15:52:09 +10:00
rahulsamant37
50ba3a9c44
Update email notification header to new logo
...
- Fixes #12369
- Relates to logo update #10404
2024-10-02 15:43:57 +10:00
Krzysztof Jeziorny
72292d4d01
Documentation: Configure API to use the DRF's TokenAuthentication ( #12363 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-09-29 15:59:15 +01:00
Ishwari8104
f86161ba00
Ensure dropdown toggles show with border in high contrast mode
...
Update _dropdown.scss (#12365 )
2024-09-29 16:37:38 +10:00
Matthew Scouten
1f7710c4d8
oEmbed - Update polldaddy to crowdsignal & remove polleverywhere
...
- Update polldaddy oEmbed to crowdsignal (changed in 2018) https://crowdsignal.com/2018/10/18/introducing-crowdsignal/
- Remove polleverywhere as it no longer supports oEmbed
2024-09-28 18:26:53 +10:00
Drikus Roor
6aa4647120
docs: Clarify file location, add missing imports
2024-09-28 17:45:32 +10:00
Sage Abdullah
3a9b975ba1
Fix UnsavedController.forceValue not immediately notifying the unsaved changes
...
Fixes #12355
2024-09-28 17:41:48 +10:00
Shubham
e7de2f8955
Refactor UnsavedController to use event.preventDefault() to trigger browser confirmation dialog
...
Per https://developer.mozilla.org/en-US/docs/Web/API/Window/beforeunload_event
"best practice is to trigger the dialog by invoking `preventDefault()`
on the event object, while also setting `returnValue` to support legacy
cases."
We don't need to support legacy cases, as our supported browsers all
support the `preventDefault()` approach.
See also:
https://caniuse.com/mdn-api_window_beforeunload_event_preventdefault_activation
Fixes #12132
From PR #12139
2024-09-28 17:41:48 +10:00
Coen van der Kamp
abcb2da372
Add translatable model copy for translation done signal ( #12362 )
2024-09-27 16:01:52 +01:00
LB Johnston
a5c31f91c2
Mark js_translation_strings template tag for deprecation
...
- `js_translation_strings` is no longer used by Wagtail admin code
- It was historically used for generating the JS config strings within templates, we now do this in Python and expose as JSON via the `wagtail_config` template tag
- Add a warning for deprecation so that we can remove this unused template tag in the next major version of Wagtail
- See #9771 for context
2024-09-26 01:12:31 -04:00
Sage Abdullah
53f55a8786
Release note for #11166
2024-09-25 14:52:50 -04:00
LB Johnston
429732f09e
Start deprecation for the locales
as a template tag
...
- This was only used by our JS config globals and can now be removed in a future release
2024-09-25 14:45:45 -04:00
SebCorbin
83f00a8363
Capfirst should be used on model verbose name instead of title ( #12358 )
2024-09-25 17:13:21 +01:00
Cynthia Kiser
d526612e4b
Added example for customizing a default accessibility check ( #12267 )
...
Co-authored-by: Albina <51043550+albinazs@users.noreply.github.com>
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-09-24 11:00:20 +01:00
Albina
722b79d9be
Fix minimap toggle visibility ( #12279 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-09-24 10:58:23 +01:00
Thibaud Colas
c2b35b8945
Release notes for #12045
2024-09-24 10:52:01 +01:00
Matt Westcott
246aaa42d9
Fill in release date for 6.2.2
2024-09-24 10:09:12 +01:00
Matt Westcott
f43a516219
Release note for #12352 in 6.3
2024-09-24 09:26:57 +01:00
Matt Westcott
281d600db3
Release note for #12352 in 6.2.2
2024-09-24 09:26:19 +01:00
Matt Westcott
5aa0673452
Update WAGTAIL_WORKFLOW_REQUIRE_REAPPROVAL_ON_EDIT
docs to indicate that default is False ( #12340 )
...
Fixes #12329
2024-09-19 16:41:17 +01:00
Matt Westcott
7083bc9460
Docs - Update spelling & reference in release notes for UserViewSet for 6.2.2
2024-09-19 10:12:34 +01:00
LB Johnston
7a03106ddd
Docs - Update spelling & reference in release notes for UserViewSet
2024-09-19 10:11:42 +01:00
LB Johnston
8b3540de0d
Simplify Wagtail docs section titles
...
- Avoid additional 'Wagtail' names in the docs titles (inc. contributing)
2024-09-19 10:09:46 +01:00
LB Johnston
8f215bda5f
Rename deploy URL to deployment + update title
2024-09-19 10:09:46 +01:00
Matt Westcott
a3d06be90c
Release note for #12332 in 6.3
2024-09-19 10:01:27 +01:00
Matt Westcott
2cc5cea4c7
Release note for #12332 in 6.2.2
2024-09-19 10:01:05 +01:00
sage
e529b5b84e
Fix content metrics plugin to work on the main element before falling back to body
( #12295 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-09-19 08:53:12 +01:00
LB Johnston
d677b1fa24
Add changelog for migrate preview-panel.js to Stimulus PreviewController
...
- Closes #11677
2024-09-19 08:22:54 +10:00
Sage Abdullah
706b95f670
Deprecate the WAGTAIL_AUTO_UPDATE_PREVIEW setting
2024-09-19 08:22:54 +10:00
Sage Abdullah
014ffb5ce9
Ensure the side panel's show event is dispatched after any hide events
...
If the event is dispatched in the loop, then the show event may be
dispatched before the hide event is dispatched. For example, if you're
switching from the checks panel to the preview panel, as the preview
panel is ordered before the checks panel in the DOM.
This could cause an issue with the preview panel code, where we listen
for the show event to activate the auto update, and listen to the hide
event to deactivate it. We're listening to both the preview and checks
side panels.
Without this fix, the preview auto-update will get deactivated upon
switching from the checks panel to the preview panel, as the hide event
is dispatched after the show event.
2024-09-19 08:22:54 +10:00
Sage Abdullah
30f1115353
Fix debounce() return type to follow original function
...
Without typing Promise and Promise.resolve with R, it defaults to
unknown, so the R generic type can't be used.
Also, the debounced function's args should take the generic A parameter
instead of redefining it as any[].
2024-09-19 08:22:54 +10:00
LB Johnston
6bb0c7597f
Docs - Hacktoberfest - Remove reference to the t-shirt
...
There is no longer a t-shirt reward as of 2023
https://hacktoberfest.com/participation/#faq
2024-09-19 08:03:36 +10:00
sanjeevholla26
aa3be4b888
[UI]: Changed class from warning to failure for confirm delete message
...
Ensure the contrast of the message is suitable
Fixes #12232
2024-09-18 09:48:41 +10:00
Matt Westcott
9c153d27ea
Release note for #12327
2024-09-17 18:12:50 +01:00
Matt Westcott
baa2e15d82
Update Atif Khan's name in release notes
2024-09-17 17:23:31 +01:00
Matt Westcott
66ff3c52cc
Use non-tracked links in Divio hosting details
...
As per https://github.com/wagtail/wagtail/pull/12250#discussion_r1762523573
2024-09-17 14:37:08 +01:00
Atif2077
96f8324458
Modified slugify/urlify to according to django's slug validator ( #12319 )
...
Fixes #12300
2024-09-17 13:14:51 +01:00
Sage Abdullah
6affa04d32
Add search and filters from PageListingMixin to form pages listing ( #12324 )
2024-09-17 09:58:12 +01:00
Matt Westcott
a7ad9ba5f1
Release note for #12275
2024-09-16 20:27:12 +01:00
Matt Westcott
63fb2b123d
Release note for #12248
2024-09-16 14:23:59 +01:00
Matt Westcott
84ab70d3a1
Release note for #12272
2024-09-16 09:27:23 +01:00
Daniel Black
93b9c04ce7
Update MySQL and MariaDB healthcheck commands for GitHub Actions
...
mysqladmin ping and mariadb-admin ping can return healthy during their
initialization stage as by default these connect over unix socket.
Add --protocol=tcp to mysqladmin to report healthy when a TCP
connection occurs. The initial startup uses --skip-networking.
MariaDB has a built-in healthcheck.sh in its container:
https://mariadb.com/kb/en/using-healthcheck-sh-script/
2024-09-13 11:22:47 +01:00
Matt Westcott
bd90802877
Release note for #12261
2024-09-13 09:23:59 +01:00
Matt Westcott
4e0236d5c2
Release note for #12298 in 6.3
2024-09-12 19:18:12 +01:00
Matt Westcott
31a3a47263
Release note for #12298 in 6.2.2
2024-09-12 19:17:49 +01:00
Matt Westcott
4e4fac003b
Release note for #12310 / document support for MariaDB
2024-09-12 19:11:22 +01:00
smark-1
14c2150f29
Add generated test-media
to .gitignore
2024-09-12 14:18:34 +01:00
Matt Westcott
48b3a52c92
Release note for #12268 in 6.2.2
2024-09-11 19:48:35 +01:00
Matt Westcott
2b481e677c
Release note for #12268 in 6.3
2024-09-11 19:47:02 +01:00
Sage Abdullah
50a1aba134
Clarify UserViewSet customization to avoid confusion with the custom user model's app config
2024-09-11 19:44:36 +01:00
smark-1
467cced098
Fix typo advantage in docs/deploy/under_the_hood.md
2024-09-08 19:08:29 +01:00
Matt Westcott
cf07674b92
Release note for #12276
2024-09-06 12:13:29 +01:00
Thibaud Colas
74681487e0
Release notes for #12203
2024-09-06 11:46:43 +01:00
Sage Abdullah
5038418b1e
Release note for #12236
2024-09-06 11:41:00 +01:00
Vince Salvino
9545193907
Add official hosting documentation
...
- Create a deploy section of the documentation
- Move fly.io deployment from tutorial to it's own page under deploy
- Clean up deployment docs and references throughout documentation
2024-09-03 07:59:20 +10:00
LB Johnston
4af8ab528b
Documentation - formatting clean up
2024-08-29 18:32:20 +01:00
LB Johnston
7f2bcb677b
Update 6.3 release notes (clean up + docs links)
2024-08-29 18:28:07 +01:00
LB Johnston
29d9b0d72e
Add docs links for 6.2 release notes
2024-08-29 18:28:07 +01:00
LB Johnston
1790bdd158
Align recent docs & release notes to US spelling
2024-08-29 18:28:07 +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
6857f6431a
Release note for #12217
2024-08-23 16:18:18 +01:00
Matt Westcott
5014d50490
Release note for #12226
2024-08-23 15:54:02 +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
688d833451
Fill in release date for 6.2.1
2024-08-20 16:20:46 +01:00
Matt Westcott
9c921481dd
Release note for #12237
2024-08-20 16:04: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
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
c7a42c4b34
Update django-taggit dependency to allow 6.0.x ( #12220 )
2024-08-08 16:19:41 +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
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
NayanshiSingh
bf91e185bf
Update twitter link in support docs to x.com ( #12205 )
...
Fixes #12206
2024-08-05 13:54:37 +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
98705762bf
Fill in release date for 6.2
2024-08-01 13:02:20 +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
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
Matt Westcott
b34f8b79a1
Release note for #12155
2024-07-29 18:36:43 +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
Sage Abdullah
a5bb99bf67
Fix duplicated rich text input inside choosers ( #12173 )
...
Fixes #12002
2024-07-29 15:08:33 +01:00
Matt Westcott
efc419a3a1
Use Nathanaël Jourdane's full name
2024-07-26 10:34:23 +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
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
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
SebCorbin
ca5d54cb89
Fix check when using FORMAT_MODULE_PATH ( #12006 )
...
Fixes #12005
2024-07-19 15:56:53 +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
SebCorbin
966f2df4ce
Fix focal point data being localized
2024-07-19 12:19:16 +01:00
Th0masCat
5cc28acc56
Fix not allowed extension not showing in the error message
2024-07-19 12:07:36 +01:00
Matt Westcott
f82f6fd2b7
Downgrade minimum version of Sphinx for Python 3.8 compatibility
...
In 5a8c33f34a
the minimum version was set to 7.3 to allow use of the long-form `--fail-on-warning` option, but this is not compatible with Python 3.8. Revert this to the original `-W` option and set 7.0 as the minimum version.
2024-07-19 12:01:18 +01:00
Nathanaël Jourdane
5a8c33f34a
doc: fix pdf export ( #12076 )
2024-07-19 01:27:07 +01:00
Matt Westcott
e066424163
Release note for #12044
2024-07-19 00:23:55 +01:00
Matt Westcott
a7d72f9fbf
Fix formatting errors
2024-07-19 00:21:39 +01:00
Chris Shenton
d1c020cd5f
Fix Page.copy ref; silence warnings due to Sphinx missing support for type hints
...
Builds upon HimanshuGarg47:fix/11972-documentation-build-with-errors
2024-07-18 23:15:58 +01:00
Himanshu Garg
de4eee4849
update 1.1.rst
2024-07-18 23:15:51 +01:00
Himanshu Garg
9adf742580
fixes errors by adding aliases, double backtick, changing indexentry
2024-07-18 23:15:40 +01:00
Himanshu Garg
e02ca6ce62
fixes some of errors by removing directives
2024-07-18 23:13:26 +01:00
Sage Abdullah
6b5662cbdc
Release note for #12023
2024-07-18 18:26:38 +01:00
smark-1
95eac5ab78
Allow page to change private page options
2024-07-18 17:23:30 +01:00
Albina
2d568dd825
Content checks design upgrade: help text and separate cards ( #12090 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-07-16 22:27:27 +01:00
Albina
62674d3fbb
Add underscore as an alt text antipattern ( #12119 )
2024-07-16 08:53:23 +01:00
Thibaud Colas
707467503d
Release notes for #12092
2024-07-16 08:08:26 +01:00
Sage Abdullah
063c52e1f2
Move inline script for activating workflow actions to workflow-action.js
...
Also deprecate the `window.ActivateWorkflowActionsForDashboard` and
`window.ActivateWorkflowActionsForEditView` functions as they no longer
need to be globally-accessible
2024-07-16 08:08:26 +01:00
Albina
14f3d4607f
Add content metrics board ( #12058 )
2024-07-11 14:58:19 +01:00
Matt Westcott
74b2f54e05
Add release notes / fill in release date for 6.1.3
2024-07-11 11:43:18 +02:00
Matt Westcott
26de9fdc19
Add release notes for 6.0.6
2024-07-11 11:41:57 +02:00
Matt Westcott
11c061e51e
Fill in release date for 5.2.6
2024-07-11 11:41:38 +02:00
Matt Westcott
7c16075342
Release note for CVE-2024-39317 in 5.2.6
2024-07-11 11:40:54 +02:00
Matt Westcott
0932ba395c
Release note for #11952
2024-07-10 17:12:12 +02:00
Sage Abdullah
f126a4860e
Deprecate user form-related settings
2024-07-10 17:10:36 +02:00
Sage Abdullah
449a48d7f9
Reorganise docs for custom user forms to prefer UserViewSet customisation
...
And make small tweaks to the GroupViewSet docs so the custom apps
examples align.
2024-07-10 17:10:36 +02:00
Sage Abdullah
dc892ac232
Document UserViewSet customisation
2024-07-10 17:10:36 +02:00
Jake Howard
35a197d609
Move sprite hashing out of module import time
...
This speeds up application startup. The hash is now a query param, injected in the template. As this param is only needed for cache invalidation, it's optional. A helper method is provided to generate the URL, along with a template tag.
This also migrates to an `lru_cache` over a global variable for simplicity.
Fixes #11680
2024-07-09 07:02:28 +10:00
Daniel Kirkham
d00df53a62
Document the vary_fields property for custom image filters
2024-07-09 06:53:27 +10:00
smark-1
ad884fe8d5
Add better docs for generating URLs on creating admin views
...
- Fixes #11963
2024-07-09 06:38:51 +10:00
Afonso
76fb103f54
Fix #11716 : Failure in Dynamic Image ServeView
...
Added back a line that was removed in a previous commit,"rendition.file.open("rb")" in serve.py.
Also, created a test in admin/tests/viewsets , test_image_presence.py that confirms that
the issue has been resolved. The test looks for a status error code 500 in the display of an image,
something that happenned when the dynamic serve view failed. If it finds it, the test fails.
The test also passes when we dont't use a dynamic serve view.
Co-authored-by: SebCorbin <sebastien@rgoods.com>
2024-07-04 11:10:50 +01:00
Andy Chosak
a81cabce05
Expose URL resolver match for RoutablePageMixin ( #11953 )
...
Django provides an `HttpRequest.resolver_match` attribute [0] that
allows downstream code to inspect a request object to see how its URL
was resolved to a view.
Wagtail's RoutablePageMixin does its own sub-URL routing to call
different view functions on a page object, but the resolver result isn't
similarly made available.
This commit sets a new `routable_resolver_match` attribute on the
request object, akin to Django's `resolver_match`, that stores this
sub-URL routing information for downstream use.
Documentation has been updated appropriately (along with a couple of
other minor broken things in the RoutablePageMixin docs).
[0] https://docs.djangoproject.com/en/5.0/ref/request-response/#django.http.HttpRequest.resolver_match
2024-07-03 14:17:12 +01:00
Ben Dickinson
2c6ab32d61
Fix bug with .get_menu_item(order=0) calls ( #12082 )
2024-07-02 17:34:22 +01:00
Matt Westcott
9ef20ca08d
Release note for #12097
2024-07-02 16:48:16 +01:00
7fca2d74a0
Add label to "user" column in views.generic.HistoryView ( #12101 )
...
Fixes #12100
2024-07-02 16:02:56 +01:00
Sage Abdullah
94d92ed822
Release note for #11987
2024-07-02 12:17:21 +01:00
Sage Abdullah
ab8d721f92
Add upgrade considerations for migrating non-page reports to universal listings
2024-07-02 11:56:40 +01:00
Sage Abdullah
94baf0645a
Deprecate ReportView.title in favour of page_title
...
The latter is enforced by WagtailAdminTemplateMixin
2024-07-02 10:49:32 +01:00
Sage Abdullah
c18068c079
Add upgrade considerations for migrating report views to universal listings
2024-07-02 10:49:32 +01:00
Sage Abdullah
7ab8e6932f
Add breadcrumbs and new AJAX-based filtering to built-in report views
...
The export buttons, while working correctly on initial load, is still
broken upon filtering on the client-side. This is because the base
listing results template has yet to include the re-rendered header
buttons. As a result, the export links won't be updated on filter.
This will be fixed in the next commit.
Also, the "by task" and "by workflow" links in the workflow reports are
gone because the slim header doesn't support passing arbitrary actions
fragment. This will be fixed in another commit using header_buttons.
2024-07-02 10:49:30 +01:00
Sage Abdullah
245baa9065
Consolidate base_page_report.html into base_report.html
...
The template is no longer used in Wagtail itself, but we
keep it around for now so that custom page reports don't
immediately raise an error.
2024-07-02 10:49:30 +01:00
Sage Abdullah
e3dfcc099c
Use separate results template for PageReportView
...
While in theory it should work, we haven't actually added tests to ensure
the tables framework can be used in ReportView.
2024-07-02 10:49:30 +01:00
Sage Abdullah
2fc7b4d5c9
Do not register 'view' permission if inspect view is not enabled
2024-07-02 10:21:03 +01:00
Sage Abdullah
b3e87bcee8
Register permissions for models registered with ModelViewSet
2024-07-02 09:30:57 +01:00
Matt Westcott
79a22efff8
Release note for #11985
2024-07-01 23:57:34 +01:00
Jake Howard
15511411bd
Allow manually specifying credentials for CloudFront frontend cache backend ( #10565 )
2024-07-01 19:02:12 +01:00
Alex Morega
d0647f3288
Add a deactivate() method to ProgressController
2024-06-28 11:59:43 +01:00
Matt Westcott
6dbae8ca2c
Implement for_instance
on PageLogEntryManager
( #12093 )
...
`BaseLogEntryManager` leaves this unimplemented, and `ModelLogEntryManager` implements it but `PageLogEntryManager` doesn't. The `LogActionRegistry.get_logs_for_instance` method calls this, which means it fails on page models.
Currently this is only used on generic views, which aren't used by page models (unless they're also registered as a snippet, which isn't really a supported setup) but LogActionRegistry is supposed to work transparently across log models, so this is clearly a bug.
2024-06-27 17:00:40 +01:00
Albina
03f26187b6
Add alt text validation rule in the accessibility checker ( #11986 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-06-27 09:33:46 +01:00
Albina
c632832edf
Language label redesign - admin listings ( #12010 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-06-26 11:18:59 +01:00
Matt Westcott
ecefcb680f
Release note for #12075
2024-06-25 18:02:14 +01:00
Sage Abdullah
e1b77ccd6f
Add docs about not converting relative links when there are multiple sites
2024-06-25 17:59:37 +01:00
Matt Westcott
a7af760aa7
Add release notes for 5.2.6
2024-06-25 13:10:19 +01:00
Alex Tomkins
5fe8da9921
Fix image preview when Willow optimizers are enabled ( #12047 )
...
Avoids https://github.com/wagtail/Willow/issues/147
2024-06-25 10:19:25 +01:00
Jochen Wersdörfer
77791767a2
make sure there are no null bytes in input data from query strings ( #12072 )
...
Fixes #12052
2024-06-24 18:53:23 +01:00
ad95e0a991
Add verbose name to locale field of TranslatableMixin ( #12071 )
...
fixes #12068
2024-06-24 18:48:45 +01:00
Matt Westcott
ead391ea14
Release note for #12059
2024-06-24 16:52:55 +01:00
Jake Howard
d1a0f4cd29
Replace urlparse
with urlsplit
. ( #12028 )
...
`urlsplit` is approximately 6x faster.
2024-06-21 00:08:56 +01:00
Matt Westcott
d4391f4e72
Release note for #12063
2024-06-20 19:30:44 +01:00
Jeroen de Vries
add3c7dc01
Update deployment instructions for Fly.io
2024-06-17 12:29:51 +01:00
Inju Michorius
ac38343957
Remove opacity property from unpublished page titles ( #12043 )
2024-06-13 15:24:46 +02:00
Sævar Öfjörð Magnússon
435293d9d7
Extend the until date of the promotion banner for Wagtail Space
2024-06-13 15:16:29 +02:00
Sævar Öfjörð Magnússon
d44808ac53
Update the date for Wagtail Space US
2024-06-13 15:07:19 +02:00
Roel Koper
366a7b7e6f
Add prefers-reduced-motion to accessibility docs ( #12038 )
2024-06-13 14:46:52 +02:00
Sævar Öfjörð Magnússon
49ef72725a
Add test for flatten_choices and support dictionaries
2024-06-13 13:05:12 +02:00
Bojan Mihelac
5a1ba5abe2
Documentation: Inline models optional Orderable, tests ( #12034 )
...
Fixes #11887
2024-06-13 11:55:06 +02:00
Sævar Öfjörð Magnússon
b7ab0496f1
Remove undocumented autobuild.sh script ( #12035 )
2024-06-12 15:44:11 +02:00
Arnar Tumi Þorsteinsson
c700ed67ef
Copy for translations done signal and test ( #12033 )
2024-06-12 15:41:04 +02:00
Matthias Brück
0bea099ab8
Skip ChooseParentView if only one possible valid parent page available to the user
2024-06-12 11:49:47 +02:00
Byron Peebles
e36c4d3fba
Documentation: Update some Sphinx-style code ref roles to MyST style ( #12030 )
2024-06-12 11:47:06 +02:00
Thibaud Colas
79ac41a251
Add mention of html5lib in upgrade considerations ( #12031 )
2024-06-11 12:21:13 +01:00
Julie Rymer
f5552c4044
Fix ico format conversion to work in template
2024-06-10 10:20:34 +01:00
Matthias Brück
ebc77dda83
Remove duplicate header in privacy dialog when a privacy setting is set on a parent page or collection
2024-06-07 11:25:32 +01:00
Matt Westcott
88311ce75c
Fix can_delete flag in generic edit view to account for instance-level permissions ( #12018 )
...
Fixes #10084 , supersedes #11964
2024-06-06 19:07:27 +01:00
Matt Westcott
62f7487617
Release note for #12013
2024-06-06 17:05:15 +01:00
Matt Westcott
d742b0278b
Release note for #11995
2024-06-06 16:17:36 +01:00
Sage Abdullah
06ad1d9dc1
Do not bypass permission policy check for superusers in snippets Create/Edit view ( #11966 )
...
Except for the lock/unlock permission, since we still need to sync that logic with PagePermissionTester
Fixes #11707
2024-06-06 01:09:22 +01:00
Matt Westcott
a7798c1b80
Release note for #11977
2024-06-04 22:28:01 +01:00
Sage Abdullah
a441f976fa
Fill in release date for 6.1.2
2024-05-30 14:58:06 +01:00
Sage Abdullah
39e8d02d20
Fill in release date for 6.0.5
2024-05-30 14:56:48 +01:00
Sage Abdullah
8b63309ced
Release note for CVE-2024-35228 in 6.1.2
2024-05-30 14:47:40 +01:00
Sage Abdullah
f8bf497741
Release note for CVE-2024-35228 in 6.0.5
2024-05-30 14:44:01 +01:00
sage
157a06d3fe
Support SVG icon id attributes with single quotes in the styleguide ( #11903 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-05-30 12:39:03 +01:00
Sage Abdullah
b2be969118
Release note for #11992
2024-05-29 19:34:03 +01:00
Matt Westcott
a1b40fe4d0
Fill in release date for 6.1.1
2024-05-21 11:00:19 +01:00
Matt Westcott
d3df8d9948
Fill in release date for 6.0.4
2024-05-21 10:59:53 +01:00
Matt Westcott
c28a260a1b
Release note for #11958
2024-05-21 10:24:40 +01:00
Matt Westcott
0ae74677b2
Refactor BoundWidget to accept an iterable of elements
2024-05-21 10:21:39 +01:00
Matt Westcott
bf3f87b759
Release note for #11957 in 6.1.1
2024-05-17 20:54:16 +01:00
sage
8ddf472e93
Partially revert listing styles changes to fix layout issues ( #11936 )
2024-05-17 11:44:28 +01:00