0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-28 08:48:04 +01:00
Commit Graph

16283 Commits

Author SHA1 Message Date
Matt Westcott
8af4774ff0 Update tests to check old signature of Block.get_template 2023-10-16 20:50:25 +01:00
Florian Delizy
247fc467eb Adding the value as a call argument to Block.get_template 2023-10-16 20:39:24 +01:00
Matt Westcott
997754fe99 Release note for #11039 in 5.1.3 2023-10-16 12:16:53 +01:00
Matt Westcott
90c163078a Release note for #11039 in 5.2 2023-10-16 12:15:23 +01:00
Matt Westcott
6a6c16030b Reinstate page type filter on page search view
This was inadvertently dropped in 71b9fb13b9 because the context variables in Django's ListView differ from the ones previously used by Wagtail, and the relevant test `pages.object_list.supports_facet` around the filter bar was not updated.
2023-10-16 12:13:38 +01:00
Matt Westcott
78f93af5c8 Release note for #10972 in 5.2 2023-10-13 15:42:05 +01:00
Matt Westcott
805685d72c Add tests for creation within snippet chooser views 2023-10-13 15:40:08 +01:00
Claude Meyer
c3324c04fa Match response_data_title_key for SnippetChooserViewSet.create_view_class to the front end's titleStateKey value of 'string'. 2023-10-13 15:40:02 +01:00
chris48s
4219488a3c use ignore_conflicts when inserting references
don't pass ignore_conflicts if backend is mssql

check for feature not DB engine
2023-10-13 14:05:38 +01:00
chris48s
912e2b6ea7 Fix reference indexing error for objects with lazy ParentalKeys
failing test case: ref index with lazy parental key

determine if instance type is indexed using instance._meta.model

Release notes for #11023
2023-10-13 13:50:14 +01:00
Matt Westcott
b4a9f2d1fa Release note for #11013 2023-10-13 13:09:06 +01:00
Sage Abdullah
ad6688f2da Optimise queries in page listing views by prefetching workflow states of the parent page 2023-10-13 13:09:06 +01:00
Sage Abdullah
0fcdd08bf0 Fix PageQuerySet.prefetch_workflow_states when used with .specific() 2023-10-13 13:09:06 +01:00
LB (Ben Johnston)
59b1d0ada2 Update docs/releases/2.13.rst
Co-authored-by: Matt Westcott <matthew@torchbox.com>
2023-10-13 11:45:41 +01:00
LB Johnston
327a31f6ae Documentation - fix broken refs & pygments formats
Fixes the following errors when build the documentation
- .../docs/getting_started/tutorial.md:181: WARNING: Pygments lexer name 'txt' is not known
- .../docs/releases/2.13.rst:113: WARNING: undefined label: 'wagtail.blocks.streamblock'
2023-10-13 11:45:41 +01:00
KRISH SONI
7161729d4b README - Add link to Python virtual environment information 2023-10-13 17:22:03 +11:00
Chiemezuo
4269d824f9 Migrate jQuery 'select all on focus' in Image URL generator to Stimulus
Adds support of this useful shared functionality in the ActionController
Fixes #11031
2023-10-13 11:29:18 +11:00
LB Johnston
7b0807d17e Update ActionController unit tests to use a setup function 2023-10-13 11:29:18 +11:00
Matt Westcott
953c980976 Release notes for #10931 in 5.2 2023-10-09 19:07:20 +01:00
Sage Abdullah
67de58eb27 Fix crash on inspect view with an empty image 2023-10-09 19:01:54 +01:00
Sage Abdullah
60e2a6dfe4 Fix double quoting of primary key in InspectView.get_edit_url and get_delete_url
self.pk is already the quoted value, so we should either use self.pk directly or quote(self.object.pk).

Use the latter for consistency with other views.
2023-10-09 19:01:54 +01:00
Sage Abdullah
aee4f42a7d Add tests and docs for inspect view in ModelViewSet 2023-10-09 19:01:54 +01:00
Sage Abdullah
9468128da5 Use more standard get_common_view_kwargs override in Group, Site, and Locale viewsets
This allows subclasses to override the overridden kwargs instead of raising an error due to duplicate kwargs

Also missed this in the previous PR
2023-10-09 19:01:54 +01:00
Sage Abdullah
8162224c32 Use get_templates() to resolve UsageView template in ModelViewSet
Missed this in the previous PR.
2023-10-09 19:01:54 +01:00
Sage Abdullah
45202ed5a2 Remove unused default register_snippet_listing_buttons hook
All buttons have been moved to the generic IndexView
2023-10-09 19:01:54 +01:00
Sage Abdullah
ed81e76b2e Add inspect button in generic IndexView 2023-10-09 19:01:54 +01:00
Sage Abdullah
be4d6a2edd Add generic InspectView to ModelViewSet 2023-10-09 19:01:54 +01:00
LB Johnston
1c4e69dbce Add better docs & cross-linking for how PanelGroup permission kwarg works
Adds more details on how to use the feature added in #8846
2023-10-09 22:50:11 +11:00
rohitsrma
15642124b6 API - Allow ordering by multiple fields
- Closes #7429
- Builds on original PR #7433 (Jake Howard)
2023-10-09 22:16:31 +11:00
Matt Westcott
2a8fc41f15 Fix changelog for django-filter upgrade in 4.0
Fixes #11019
2023-10-09 12:04:56 +01:00
Matt Westcott
a7f7757630 Fix changelog for django-filter upgrade in 5.1 2023-10-09 12:04:19 +01:00
LB Johnston
ea7e3ed2e5 Add Changelog & Upgrade Notes for #10959 2023-10-09 20:56:09 +11:00
LB Johnston
ee533ac1a7 Remove deprecated search_garbage_collect
Wagtail 5.0 advised that this old command should no longer be used.
https://docs.wagtail.org/en/stable/releases/5.0.html#managing-stored-search-queries

However, it was not fully removed from the documentation or the code.
2023-10-09 20:56:09 +11:00
LB Johnston
a008554b9c Move chooser views from search into searchpromotions 2023-10-09 20:56:09 +11:00
LB Johnston
019015c698 Search models - add clearer deprecation comments and warnings
Models should not be in use as of Wagtail 5.0, however the chooser for popular search terms was still referencing this.

Add another warning and add clearer Docstrings about the state of these models, to be removed in Wagtail 6.0
2023-10-09 20:56:09 +11:00
Thibaud Colas
a2c9e9ab2c Release notes for docs changes 2023-10-09 06:43:30 +01:00
Olumide Micheal
5ab554010a
Fix Inconsistent URL Format in Getting Started tutorial (#11009) 2023-10-09 06:40:57 +01:00
Damilola Oladele
1c0ffc8994
Document new choice of writing style guide (#10634) 2023-10-06 23:24:26 +01:00
Matt Westcott
7787ebaf95 Add 'undocumented internals' section to 5.2 upgrade considerations 2023-10-06 16:24:16 +01:00
LB Johnston
bd730ecba6 Eslint - allow new SomeClass() in unit tests
- This constraint is not required in unit tests where the output of a class is not the main thing being tested
- Avoid noise in tests by just removing disabling this linting rule in these files
2023-10-06 20:36:42 +11:00
Panagiotis H.M. Issaris
3340854d1a Add a link to the issue tracker on the PyPI project page (#11004) 2023-10-06 10:30:10 +01:00
Panagiotis H.M. Issaris
949c7870a7 Add a link to the change log on the PyPI project page 2023-10-06 11:00:27 +02:00
Matt Westcott
d9c8d9fff3 Update CI database versions (#10999)
Rebuild of #10842
2023-10-05 14:44:28 +01:00
LB Johnston
8e3bee5e10 Add changelog for #10883 2023-10-05 22:01:52 +10:00
faishalmanzar
ceed617115 Added progress bar to wagtail_image_rendition command output
Fixes #10853
2023-10-05 22:23:28 +11:00
Jake Howard
8722bd963d Drop support for hashing text-mode files
This was only used in tests, and improves efficiency and ensures we use the optimisation from `hashlib.file_digest`
2023-10-05 22:20:01 +11:00
Jake Howard
62f91e1b49 Use hashlib.file_digest when available and applicable
This implementation is faster / more efficient than ours, but can only be used on binary-mode files.

Also increase the read buffer size to improve efficiency and performance.
2023-10-05 22:20:01 +11:00
dependabot[bot]
a1f8edc84d Bump postcss from 8.4.30 to 8.4.31
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.30 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.30...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-05 22:04:39 +11:00
Matt Westcott
d9e6ba07b7 Version bump django-filter to 23.3 for preliminary Django 5.0 compatibility 2023-10-05 11:38:45 +01:00
Matt Westcott
93064ee74c Bump django-modelcluster to 6.1; no need to test Django 5.x against git main 2023-10-05 11:38:45 +01:00