Wykres commitów

5836 Commity (11c061e51eb6191b6028cb1c34cda22940181070)

Autor SHA1 Wiadomość Data
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
Romein van Buren 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
Romein van Buren 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