0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 11:10:43 +01:00
Commit Graph

15836 Commits

Author SHA1 Message Date
LB Johnston
a19bae886d Format markdown files 2023-08-31 08:21:36 +10:00
Matt Westcott
151a386ff5 Add note to clarify that blocks are not interchangeable with model fields
Prompted by https://stackoverflow.com/questions/76973112/unknown-fields-specified-for-a-page-model-in-wagtail-at-content-panels/76973226?noredirect=1#comment135693718_76973226 and similar misconceptions people have made in the past.
2023-08-30 18:47:57 +01:00
Sage Abdullah
be9504cb42
Release notes for #10826 2023-08-30 16:50:21 +01:00
Christer Jensen
63b4056022
Fix numbers from being exported as strings
Uses parameter `strings_only` on `force_str` which when set to True
prevents certain types like numbers from being converted to string.
2023-08-30 16:50:21 +01:00
Sage Abdullah
a875cb2700
Release notes for #10827 2023-08-30 15:17:46 +01:00
Sage Abdullah
391cdb52ff
Prevent lowercase conversions of spreadsheet export column headers 2023-08-30 15:14:08 +01:00
Christer Jensen
dfa84e835d
Change spreadsheet header to use Django's label_for_field instead 2023-08-30 12:24:26 +01:00
Christer Jensen
0edf22ccbc
Allow overriding export_headings via ModelViewSet 2023-08-30 12:22:15 +01:00
Sage Abdullah
b61bd4463e
Release notes for #10807, #10811, #10818, and #10822 2023-08-30 11:15:25 +01:00
Sage Abdullah
71a18ee659
Add default page_title and get_page_subtitle in generic.CreateView 2023-08-30 11:05:46 +01:00
Sage Abdullah
d610ca8f19
Use model's verbose_name_plural as default page_title in generic.IndexView
Without this, using a ModelViewSet without overriding the IndexView's
page_title will result in the index view not having a title.
2023-08-30 10:31:16 +01:00
Sage Abdullah
27aabc128b
Move SnippetViewSet.ordering to ModelViewSet 2023-08-30 10:31:16 +01:00
Sage Abdullah
9a2d53d0cf
Move SnippetViewSet.list_per_page to ModelViewSet 2023-08-30 10:31:16 +01:00
Sage Abdullah
66216852b8
Move SnippetViewSet.list_export and export_filename to ModelViewSet 2023-08-30 10:30:17 +01:00
Sage Abdullah
7ba1afb8a4
Move SpreadsheetExportMixin to generic.IndexView 2023-08-30 10:30:17 +01:00
Sage Abdullah
ccbd6849f3
Move SnippetViewSet.search_fields and search_backend_name definition to ModelViewSet 2023-08-30 10:29:29 +01:00
Sage Abdullah
3ae937120e
Fix cross-reference links in Snippets-ModelAdmin migration docs 2023-08-30 10:26:39 +01:00
Sage Abdullah
fb9abace01
Add tests for passing dict list_filter and filterset_class 2023-08-30 10:26:39 +01:00
Sage Abdullah
1fa124fe82
Move SnippetViewSet.list_filter and filterset_class definition to ModelViewSet 2023-08-30 10:26:38 +01:00
Sage Abdullah
2b6a580637
Add the ability to use filters in generic IndexView
It was missing the template code to display the filters
2023-08-30 10:26:17 +01:00
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