LB Johnston
dfaa488add
Remove work arounds for dispatch target events
...
- See https://github.com/hotwired/stimulus/issues/642
- Adopt streamlined approach in SwapController for 'targetElement'
2023-08-24 17:01:56 +02:00
LB Johnston
7e3988a438
Update Stimulus to v3.2.2
...
- See https://github.com/hotwired/stimulus/releases/tag/v3.2.2
2023-08-24 17:01:56 +02:00
Storm B. Heg
a7041c7c80
Amend changelog entry for #10748
2023-08-24 16:33:34 +02:00
LB (Ben Johnston)
eb51fb28f0
Update npm packages; a11y-dialog, axe-core, js-cookie ( #10748 )
...
- a11y-dialog (changes to event callbacks did not impact our usage) - https://a11y-dialog.netlify.app/migrating-to-v8/
- axe-core (minor update with a few improvements)
- js-cookie (breaking changes only relate to converters, which we do not use) - https://github.com/js-cookie/js-cookie/releases/tag/v3.0.0
- Closes #10718
2023-08-24 16:31:29 +02:00
LB Johnston
585a08fea0
Adopt w-bulk Stimulus controller for form submissions listing
2023-08-24 20:53:49 +10:00
Sage Abdullah
714beabb7f
Release notes for #10823
2023-08-24 11:02:47 +01:00
Sage Abdullah
143430a337
Optimise queries in WorkflowObjectsToModeratePanel using prefetch_related()
2023-08-24 11:00:02 +01:00
Sage Abdullah
977580989b
Simplify tests for revisions comparison buttons in workflow dashboard panel
2023-08-24 10:55:53 +01:00
Matt Westcott
29fb69b65f
Add tests for comparison buttons
2023-08-24 10:54:15 +01:00
Matt Westcott
a64db055c5
Add compare buttons to moderation dashboard
...
Fixes #7098
2023-08-24 10:54:15 +01:00
LB Johnston
6f9dda5cfc
Fix issue where collection deletion success message was not correct
...
- Fixes #10813
2023-08-24 18:33:23 +10:00
Matt Westcott
2be1da6621
Stop private pages from breaking display of snippets in moderation dashboard
...
Fixes #10819
2023-08-24 18:28:08 +10:00
LB Johnston
6dfa97b908
Add changelog for #7937
2023-08-24 07:14:06 +10:00
Dan Braghis
415bbbf1ce
Update page model tests
2023-08-24 07:14:06 +10:00
Dan Braghis
005c409998
Remove wagtail.unpublish
action log for aliases when unpublishing source page
2023-08-24 07:14:06 +10:00
Dan Braghis
1e3e400f28
Remove wagtail.publish
action log when creating alias from live page
2023-08-24 07:14:06 +10:00
Dan Braghis
387cd377ed
Remove wagtail.publish
action log when publishing source page
2023-08-24 07:14:06 +10:00
Sage Abdullah
564b52188d
Release notes for #10779 and #10796
2023-08-22 17:14:44 +01:00
Sage Abdullah
cd222898fd
Move SnippetViewSet.list_diplay definition to ModelViewSet
2023-08-22 16:34:51 +01:00
Sage Abdullah
71aa1d2a3e
Remove template_name overrides from locale, sites, and groups viewsets in favour of the viewset's template_prefix
2023-08-22 16:26:22 +01:00
Sage Abdullah
849dd5124b
Rename groups IndexView.results_template_name to results.html
2023-08-22 16:25:26 +01:00
Sage Abdullah
3cb897ca49
Rename ModelViewSet.get_template action param to name
...
The param does not necessarily map to one of the views' name, and in
fact can be a path relative to the template_prefix.
2023-08-22 16:07:54 +01:00
Sage Abdullah
303ad4cb7e
Use confirm_delete for ModelViewSet.delete_template_name
2023-08-22 16:07:06 +01:00
Sage Abdullah
62f2d1163f
Introduce index_results.html template for IndexView.results_template_name
2023-08-22 16:00:18 +01:00
Sage Abdullah
91a539d797
Add docs and tests for custom template overrides in ModelViewSets
2023-08-22 15:56:42 +01:00
Sage Abdullah
8c6a8befd9
Add tests for registering ModelViewSetGroup
2023-08-22 15:56:38 +01:00
Sage Abdullah
cbf2eb5379
Reinstate template_name override in view classes that are wrapped in ModelViewSet subclasses
...
In case people extend these classes (without overriding template_name) and use it without the corresponding viewset
2023-08-22 15:53:51 +01:00
Sage Abdullah
a290e27b3a
Use template_prefix for customising templates of views in ModelViewSet subclasses
2023-08-22 15:53:51 +01:00
Sage Abdullah
f54eb06c2f
Move SnippetViewSet template override mechanism to ModelViewSet
2023-08-22 15:53:51 +01:00
Sage Abdullah
a2c21798a5
Override get_foo_view_kwargs() in SnippetViewSet instead of the views
2023-08-22 15:53:50 +01:00
Sage Abdullah
1c78e2b7a3
Allow BaseListingView.results_template_name to be a list/tuple
2023-08-22 09:16:00 +01:00
Sage Abdullah
c02905488e
Allow ModelViewSet.get_foo_view_kwargs() to accept arbitrary kwargs
2023-08-22 09:16:00 +01:00
Sage Abdullah
10b34be1ba
Extract ModelViewSet view kwargs into get_foo_view_kwargs() methods
2023-08-22 09:16:00 +01:00
Shreshth Srivastava
7a647eb53b
Fix incorrect screenshot for authors on tutorial ( #10805 )
...
Fixes #10763
2023-08-21 19:28:57 +01:00
Antoni Martyniuk
eadf9a6d9c
feat: pickle support for StreamField ( #10654 )
...
Fixes #1988
2023-08-21 18:42:38 +01:00
Sage Abdullah
febacf7958
Use WagtailTestUtils.get_soup() more widely
2023-08-21 14:40:07 +01:00
Sage Abdullah
ad070af8fd
Change WagtailTestUtils.get_soup() to accept str/bytes instead of HttpResponse
2023-08-21 14:40:07 +01:00
Matt Westcott
cfa4b7ca69
Copy view restrictions when creating a page alias
...
Rebuild of #10145 following modifications to #6406 . Fixes #10111
2023-08-18 19:10:01 +01:00
Matt Westcott
ea659cb98b
Release note for #10758
2023-08-18 17:45:31 +01:00
Sandeep
a1e50c57f6
Copy privacy settings on page copy ( #6406 )
...
Fixes #6212
2023-08-18 15:58:55 +01:00
Matt Westcott
44af83529e
Add Shreshth Srivastava to contributors
2023-08-18 13:02:32 +01:00
Shreshth Srivastava
ff16cb5a3e
Mention WAGTAILADMIN_BASE_URL in integrating_into_django.md ( #10758 )
...
Fixes #10741
Mentioned WAGTAILADMIN_BASE_URL and the warnings related to it in the 'Settings' section.
2023-08-18 13:00:42 +01:00
Matt Westcott
9dcebc549a
WagtailTestUtils.get_soup should accept HttpResponse, not HttpRequest
2023-08-17 14:45:31 +01:00
Sage Abdullah
cf9c264875
Use strict editable mode when installing on GitHub Actions
2023-08-16 15:54:33 +01:00
Sage Abdullah
d8a2826fb4
Release notes for #10767 and #10777
2023-08-16 11:42:11 +01:00
Sage Abdullah
276d8e1fcd
Turn off reference indexing for Locale, Site, and Group
2023-08-16 11:42:11 +01:00
Sage Abdullah
65739c6925
Add ModelViewSet.add_to_reference_index to allow opting out of the ReferenceIndex
2023-08-16 11:42:11 +01:00
Sage Abdullah
db49ae8c40
Simplify snippets registration code
...
For legacy-style registrations where register_snippet is passed a model, there is no change.
For new-style registrations, most of the logic is already handled by the ViewSetRegistry.register() or ViewSet/ViewSetGroup.on_register().
With this change, register_snippet() can now also take an instance of SnippetViewSet/SnippetViewSetGroup instead of class, and the same with the items in the group.
2023-08-15 12:00:38 +01:00
Sage Abdullah
e21b9bb79b
Move snippets ReferenceIndex registration to ModelViewSet
2023-08-15 12:00:38 +01:00
Sage Abdullah
745c715aef
Raise error when there are multiple registrations of the same snippet
2023-08-15 12:00:38 +01:00