Wykres commitów

5875 Commity (e76d04dfb26d2b103deaf0088f6bf3477d7ea28e)

Autor SHA1 Wiadomość Data
Matt Westcott 14a57215ed 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:09:03 +01:00
Sage Abdullah e7c7b971b2 Fix broken task type filter in workflow task chooser modal (#12213)
Fixes #12210
2024-08-08 18:51:54 +01:00
Matt Westcott 37a5e8dabc Handle `child_block` being passed as a kwarg in ListBlock.deconstruct_with_lookup (#12208)
Fixes #12202
2024-08-06 14:36:17 +01:00
Matt Westcott 4a79d853ba Add release notes template for 6.2.1 2024-08-06 14:35:08 +01:00
Matt Westcott 6161b09644 Fix no-index directive for Sphinx 7.4.7 2024-08-01 14:41:30 +01:00
Matt Westcott f051c873ac Fill in release date for 6.2 2024-08-01 13:00:37 +01:00
smark-1 0833e7bf22 Fix typo in admin url finder docs (#12193) 2024-08-01 11:49:04 +01:00
DK bd952219b0 Fix typo in 6.2 release notes and changelog (#12192)
Co-authored-by: Daniel Kirkham <d.kirkham@kirkham.id.au>
2024-08-01 11:49:04 +01:00
Thibaud Colas 1e517bac27
Disable pointer events on checker highlights to simplify DevTools inspections 2024-07-31 12:21:09 +01:00
Thibaud Colas 43ede8879b
Log accessibility checker results when present 2024-07-31 12:21:00 +01:00
Sage Abdullah b758007587 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:36:10 +01:00
Matt Westcott 46c78be145 Release note for #12084 2024-07-29 16:00:25 +01:00
Sage Abdullah b4ba3d635d Fix duplicated rich text input inside choosers (#12173)
Fixes #12002
2024-07-29 15:09:06 +01:00
Matt Westcott fe9a2c493f Use Nathanaël Jourdane's full name 2024-07-26 10:34:58 +01:00
Matt Westcott 7b30436be4 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:32:54 +01:00
Thibaud Colas b8d85175e4 Reorder and rewrite 6.2 release notes 2024-07-23 10:52:24 +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