- Fixes #11629
- Relates to clean up done as part of #11629 which removed a lot of styling for footer actions which appeared to be unused.
- Re-add some base styling to support the ability for basic customisations where buttons are added within the `extra_footer_actions` block.
and remove any other _editor_js.html includes from templates that extend
wagtailadmin/generic/form.html, either directly or via
wagtailadmin/generic/{create,edit}.html templates.
Fixes #11760
Fixes #11799
We only support Django 4.2 and 5.0. DRF v3.14.0 was released on
22-09-2022, while Django 4.2 was released on 03-04-2023. This means
Django 4.2 and 5.0 support were officially introduced in DRF 3.15.0.
While our tests used to indicate our use of an older version of DRF
didn't cause any issues when installed with a newer version of Django,
we should bump this anyway. This prevents people from installing a
cached version of DRF that we "claim" to be compatible with Wagtail,
but in reality DRF itself doesn't officially support our minimum Django
version. In such cases, the installation can still proceed as DRF does
not impose an upper bound on Django.
This also fixes an issue where our tests would fail when installed with
DRF < 3.15.0 as the PermissionDenied error messages became more
specific.
Django's test runner appends 'testserver' to your ALLOWED_HOSTS
setting. If your project has `ALLOWED_HOSTS=['*']` (which is totally
legit for Google App Engine standard) this means the setting value is
`ALLOWED_HOSTS=['*', 'testserver']` and Wagtail's dummy request helper
was setting the request SERVER_NAME to '*'.
But '*' is not a valid host name, causing a DisallowedHost exception.
This change sets the SERVER_NAME to 'example.com' in that case.
- We have other references to this command added in 5.2 however we did not include this in the page that goes into detail of Image renditions
- See #8166
- Allows one controlled w-bulk element to contain groups of toggles that work together
- Useful for tables where the DOM structure means that columns will need to be toggled / selected as one
- Basic support for 'multi' groups to avoid issues with space separated items
- Currently the code appears to try to fallback to an empty id, however this will never happen as we are building a non-empty string
- Instead if we have not found any closest panel, simply return the intersection map as is
Closes #11210
DRF changed its behaviour in
56946fac8f
A custom message that is specified when raising a PermissionDenied
exception is now preserved by DRF, instead of using a generic "You do
not have permission to perform this action."
Include the ability to trigger the dialog from the sidebar
Include base styling and unit tests
Fixes ##11711
Relates to larger work for keyboard shortcuts in #3949
Instead of checking for the word Preview NOT showing, only check for the exact URL.
Instead of checking for all `tr` in the templates, only check for those within the correct scope.
Move the logic from the page_breadcrumbs.html template to the
page_breadcrumbs template tag function. This allows us to completely
reuse the same generic breadcrumbs.html template.
As a result, the page_breadcrumbs.html template is now no longer needed
and can be removed.