Wykres commitów

16435 Commity (b4881cad64e2f0b4cb68c84f1576b0ca0424b619)

Autor SHA1 Wiadomość Data
Sage Abdullah b4881cad64
Move SnippetViewSet.get_edit_handler() to ModelViewSet
However, keep the logic for falling back to extracting panel definitions
from the model class as snippets-specific. ModelViewSets are likely used
with models that are more low-level and thus we want developers to
explicitly define the fields that are editable in the admin, just like
how Django's ModelForm works.
2023-11-28 09:26:33 +00:00
Sage Abdullah 0af4dd5fd9
Use <button> instead of <input> for submit buttons in generic create/edit views' templates 2023-11-28 09:26:32 +00:00
Jhonatan Lopes 678dd15852 Add page types report (#10850) 2023-11-27 16:37:55 +00:00
Matt Westcott 10f387aca0 Release note for #11262 in 5.2.2 2023-11-27 11:39:25 +00:00
LB Johnston db00f05a47 Changelog for #11262 2023-11-27 11:39:23 +10:00
zerolab e3bc95b8f9 Fix `get_valid_recipients` and `get_recipient_users` returning None 2023-11-27 11:39:23 +10:00
zerolab 5653b3fd01 Add failing tests (for missing user on Workflow actions) 2023-11-27 11:39:23 +10:00
Stefan Hammer 00422b5004 Add 5.2.2 changelog for results_template_name fix #11231 2023-11-27 11:27:11 +10:00
Stefan Hammer 721cf96b00 Fix snippets index.html to use results_template_name for results
Until now, if you've set an index_results_template_name or used the
namespaced template-lookup to override it, it was only used for the
ajax-results.
The include is now similar to wagtailadmin/generic/index.html.
2023-11-27 11:22:57 +10:00
DevilsAutumn c3fd8ee84a Support block `extra_actions` in generic and snippets index templates
- Closes #11275
2023-11-27 11:15:18 +10:00
Sage Abdullah 1c5c802f10
Release note for #11256 in 5.2.2 2023-11-23 10:55:23 +00:00
Krzysztof Jeziorny e763a614f1 Improve vertical alignment of page listing 'explore' arrow icon
Vertically align the arrow in the children cell
2023-11-23 07:20:43 +10:00
Dan Braghiș e8b845f525 Relax the Willow upper version boundary
To allow getting new features easier/faster
2023-11-23 07:09:03 +10:00
Mariana Bedran Lesche ca8a87077b Add section to testing docs about working with pages
- Closes #11244
2023-11-22 08:38:30 +10:00
Gunnar Scherf bd72828c5d Fix issue with image focal point removal not working
Ensure we define jcropapi, fixing javascript TypeError.
Fixes #11254
2023-11-22 08:25:15 +10:00
SebCorbin 094834909d
Allow `Page.permissions_for_user()` to be overridden by specific page types 2023-11-20 16:08:59 +00:00
Thibaud Colas db0ee5992d
Rename "advanced tutorial" to "full tutorial" (#11260) 2023-11-20 15:22:52 +00:00
Damilola Oladele 1cae587727
Broken link fix in tutorial and other cleanup (#11252)
Co-authored-by: sag​e <laymonage@gmail.com>
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-11-20 13:19:15 +00:00
Thibaud Colas e741ebbdb0 Add release notes for v5.2.2 2023-11-20 12:52:11 +00:00
Thibaud Colas 82c0fdecbf
Change light theme floating toolbar active color (#11261)
Co-authored-by: Cassidy <cassidy.pittman@torchbox.com>
2023-11-20 12:45:34 +00:00
Thibaud Colas 0ae74e1d5a
Add tutorial disclaimer for new extended tutorial (#11259) 2023-11-20 08:41:16 +00:00
Thibaud Colas 6bc778843e Release notes for #6107 / #11209 2023-11-17 21:04:57 +00:00
Thibaud Colas 4e08807d17 Remove unused icon styles 2023-11-17 21:04:57 +00:00
Thibaud Colas 9fc1098167 Remove unused and unneeded icon aliases 2023-11-17 21:04:57 +00:00
Thibaud Colas 48a62df3df Update docs now that SVG icons are the only option 2023-11-17 21:04:57 +00:00
Matt Westcott 6b973dca45 Release notes for 6.0 deprecations 2023-11-17 17:12:59 +00:00
Matt Westcott 1da75441ea Rotate deprecation warnings 2023-11-17 17:00:58 +00:00
Damilola Oladele 7e774971fa
Documentation: GSoD - A complete tutorial on how to build your Portfolio site with Wagtail (#11217)
Co-authored-by: Meagen Voss <45881480+vossisboss@users.noreply.github.com>
2023-11-17 16:39:37 +00:00
Sage Abdullah 2ce16fd365
Add PR number to git-blame-ignore-revs comment for ruff formatting 2023-11-17 15:31:57 +00:00
Sage Abdullah 364c1cee0d
Release notes for #11220 2023-11-17 15:26:33 +00:00
John-Scott Atlakson bf1de69a54
Git ignore `ruff format` commit 2023-11-17 15:22:38 +00:00
John-Scott Atlakson f8fc2c3a20
Apply `ruff format .` 2023-11-17 15:21:56 +00:00
John-Scott Atlakson 9a2177dc19
Upgrade `ruff` and replace `black` with `ruff format` 2023-11-17 15:21:55 +00:00
Matt Westcott 7bb535f8a2 Update latest.txt for 5.2.1 2023-11-16 15:35:35 +00:00
Matt Westcott f44c31d9a6 Fill in release date for 5.2.1 2023-11-16 14:44:26 +00:00
Matt Westcott e4a53d6f62 Fetch new translations from Transifex 2023-11-16 14:43:53 +00:00
Matt Westcott 6908a5cc1c Prevent error on locked pages report when a user has locked multiple pages (#11245)
Fixes #10960. Thanks to @richie-blake and @rohitsrma for reporting / investigation.
2023-11-16 14:16:35 +00:00
Sage Abdullah 3af26aa30e Restore the ability to have content type facets when searching pages with an empty query (#11243) 2023-11-16 13:22:58 +00:00
Joe c9b3d9e15b Check for ContentType and Permission models before migration (#11184)
This prevents `create_extra_permissions` from querying or creating
ContentType or Permission objects if the models cannot be found.
When using multiple databases which do not have the auth_permission
table `create_extra_permissions` will cause migrate to fail.

This is similar to https://code.djangoproject.com/ticket/24075.

Thanks to @crccheck for additional bug reporting.
2023-11-16 13:14:37 +00:00
Matt Westcott ba17ef19d3 Release note for #11216 / #11234 in 5.2.1 2023-11-15 13:17:19 +00:00
Matt Westcott f0697a6a9c Release note for #11216 in 6.0 2023-11-14 18:56:36 +00:00
Matt Westcott 504e08a371 Remove fallback for fields that don't exist in search_fields
The `check` method in BaseSearchQueryCompiler rejects these, so this doesn't make a difference to real-world queries. However, the check is only performed after compilation is complete, so we still need to guard against this with `searchable_fields.get`.

However, our tests _do_ blithely use non-existent fields, so fix those too...
2023-11-14 18:53:27 +00:00
Matt Westcott 3eae77a47a Don't add _all_text fields to remapped_fields if explicit fields are specified
Also fix previously-masked issues with _compile_fuzzy_query - pass field boost, and use field_name as key instead of the Field object
2023-11-14 18:53:27 +00:00
Matt Westcott f33f5ea61b Initialise individual Fields with the correct boost values 2023-11-14 18:53:27 +00:00
Matt Westcott 4bbf86e65a Use a 'boost' field in match query clauses instead of "foo^2" notation
The latter notation is only valid within multi_match clauses: compare https://www.elastic.co/guide/en/elasticsearch/reference/8.11/query-dsl-multi-match-query.html#field-boost versus https://www.elastic.co/guide/en/elasticsearch/reference/8.11/query-dsl-match-query.html#match-field-params
2023-11-14 18:53:27 +00:00
Matt Westcott 9dc75fb006 Make field_name_with_boost a property of the Field object rather than having a get_boosted_fields helper function 2023-11-14 18:53:27 +00:00
Matt Westcott df0c3064c4 Only consider subclasses of the currently-queried model when compiling unique_boosts
At indexing time, any SearchFields with a boost value assigned are copied to an index field named "_all_text_boost_{value}". Then, when querying, we compile a list of all such index fields and query on those fields, with the relevant boost applied to each one.

Previously, "all such index fields" was obtained by looking at distinct boost values across all indexed models. However, we only really need to consider models that can actually appear in the results - i.e. are subclasses of self.queryset.model. If a boost value does not appear among this set of models, then these models will never contribute anything to that "_all_text_boost_{value}" index field, and so it's pointless to query it.
2023-11-14 18:53:27 +00:00
Christer Jensen b14bc33cdc
Fix snippet IndexView not respecting get_add_url() 2023-11-14 15:40:45 +00:00
Sage Abdullah d0c1848881
Use doseq=True when re-encoding query params in set_query_params
Otherwise, the list of values will be stringified and then URL encoded, resulting in something like locale=%5B%27en%27%5D

From parse_qs docs: Use the urllib.parse.urlencode() function (with the doseq parameter set to True) to convert such dictionaries into query strings.
2023-11-14 14:58:28 +00:00
Matt Westcott 583b0a297f Release note for #11223 in 5.2.1 2023-11-14 12:10:24 +00:00