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

15914 Commits

Author SHA1 Message Date
Matt Westcott
0cea5a70d4 Release note for #10836 in 5.1.2 2023-09-06 17:56:57 +01:00
Matt Westcott
d112127178 Release note for #10836 in 5.0.3 2023-09-06 17:56:00 +01:00
Sage Abdullah
6a0b01bdf9 Do not use ignore_conflicts when creating extra permissions for snippets 2023-09-06 17:48:44 +01:00
Matt Westcott
6a30d5ebc1 Release note for #10859 2023-09-06 16:00:15 +01:00
Sage Abdullah
96165421a6 Add test for adapting chooser widget with linked_fields 2023-09-06 15:58:36 +01:00
Matt Westcott
15a8acd14b Change no-results message to "There are no results".
As per https://github.com/wagtail/wagtail/pull/10859#discussion_r1317288103, referring to the act of creating items is a distraction from the current workflow, and particularly misleading for filtered listings (where records might exist, just not matching the current criteria).
2023-09-06 15:58:36 +01:00
Matt Westcott
8223162c93 Add documentation for linked_fields 2023-09-06 15:58:36 +01:00
Matt Westcott
a3029bbe3a Implement linked_fields on ChooserViewSet 2023-09-06 15:58:36 +01:00
Matt Westcott
7b64f08e74 Allow ChooserViewSet to be filtered by specified URL parameters 2023-09-06 15:58:36 +01:00
LB Johnston
8a52269da5 Update w-breadcrumb root class to w-breadcrumbs (plural)
- This way we align with the controller name
2023-09-05 20:05:56 +10:00
LB Johnston
857ea05c2e Migrate breadcrumb JS to Stimulus RevealController
- Adds a new generic `RevealController` that handles the ability for content to be opened/closed while updating the relevant parts of the DOM such as aria-expanded on the toggle.
- Register this controller as a generic `w-reveal` and also the `w-breadcrumb` identifiers so that we can differentiate usage via different DOM attributes and events.
- Closes #10118
2023-09-05 20:05:56 +10:00
LB Johnston
0d09eba59e Rename breadcrumbs.js to RevealController 2023-09-05 20:05:56 +10:00
Matt Westcott
187f010c34 Check that model_class is not None in get_permission_policy
Co-authored-by: sag᠎e <laymonage@gmail.com>
2023-09-05 10:37:25 +01:00
Matt Westcott
98784fa153 Skip extract_references on ChooserBlock if model is not a real model 2023-09-05 10:37:25 +01:00
Matt Westcott
2dcfdedc37 Apply duck-typing for model-like classes within ChooserViewset
* allow any class to pass through resolve_model_string, not just models
* use BlanketPermissionPolicy if model_class is not a real model
2023-09-05 10:37:25 +01:00
Matt Westcott
e40b0b1fd0 Only try to order by _updated_at if column exists 2023-09-05 10:37:25 +01:00
Matt Westcott
cbeb9a2512 Docs and release note for ChooserViewSet.get_object_list (#10851) 2023-09-04 18:45:39 +01:00
Matt Westcott
48313bd38c Support overriding get_object_list from ChooserViewSet 2023-09-04 16:14:20 +01:00
Matt Westcott
fced56b65c Release note for #10849 2023-09-04 16:13:36 +01:00
Matt Westcott
dd31ec54af Use get_common_view_kwargs for ChooserViewSet 2023-09-04 16:13:36 +01:00
Matt Westcott
e9c291c1be Move common kwargs in SnippetViewSet to get_common_view_kwargs 2023-09-04 16:13:36 +01:00
Matt Westcott
2ab876fc9c Use construct_view for other views in SnippetViewSet 2023-09-04 16:13:36 +01:00
Matt Westcott
5429d4ecbf Introduce a set of common view kwargs 2023-09-04 16:13:36 +01:00
Thibaud Colas
06a7bc6124
Fix outdated reference to BlogCategory in tutorial 2023-09-01 16:22:00 +01:00
LB Johnston
1dbf2ec2df Add changelog for #10798 2023-08-31 18:43:15 +10:00
Matt Westcott
aaceedc735 Filter out comments with invalid content paths 2023-08-31 18:43:15 +10:00
Matt Westcott
c9d1899e39 Add a mechanism for retrieving a StreamField block by content path 2023-08-31 18:43:15 +10:00
LB Johnston
df6a9a4ee3 NPM package lock - update caniuse-db 2023-08-31 08:30:00 +10:00
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