Wykres commitów

14999 Commity (885b4783ee1a449cfbf896f05545d41194f6fb9c)

Autor SHA1 Wiadomość Data
Daniel Kirkham fd1ccbc669 Allow a custom icon in SnippetViewSet to be used across the admin views 2023-03-22 15:03:48 +00:00
Matt Westcott 7a7bbfa6cf Release note for #10072 2023-03-21 14:31:05 +00:00
Sage Abdullah 568aa64204
Hide delete confirmation message for protected images 2023-03-21 12:10:38 +00:00
Sage Abdullah f1d982f23e
Add tests for deleting a protected image and document 2023-03-21 12:03:40 +00:00
Sage Abdullah 26833c24d7
Add tests for ReferenceIndex's on_delete description 2023-03-21 12:03:39 +00:00
Sage Abdullah 2e79a05417
Prevent POST requests from deleting objects with a protected reference in generic DeleteView 2023-03-21 12:03:39 +00:00
Sage Abdullah 57bf2d28c2
Move snippets usage tests to a separate test_usage module 2023-03-21 12:03:39 +00:00
Sage Abdullah 007990347d
Use generic DeleteView for documents DeleteView 2023-03-21 12:03:39 +00:00
Sage Abdullah e3d2e93fb2
Extend generic DeleteView for image DeleteView 2023-03-21 12:03:39 +00:00
Sage Abdullah 9a0aebba9c
Call get_object() during setup() in DeleteView
This allows us to make use of self.object in dispatch() for permission checks
2023-03-21 12:03:39 +00:00
Sage Abdullah ccf53cee83
Add next URL support to generic DeleteView 2023-03-21 12:03:39 +00:00
Sage Abdullah daf265873e
Make use of pk_url_kwarg in generic DeleteView.get_object() 2023-03-21 12:03:38 +00:00
Sage Abdullah 5939fa8955
Change 'used' -> 'referenced' 2023-03-21 12:03:38 +00:00
Sage Abdullah c298609cbc
Show usage summary on page and snippet unpublish views 2023-03-21 12:03:38 +00:00
Sage Abdullah b075205ea8
Extract usage summary link into a shared include template 2023-03-21 12:03:38 +00:00
Sage Abdullah fccf6f9070
Show usage summary on page delete view and prevent protected deletion 2023-03-21 12:03:38 +00:00
Sage Abdullah 85919455b5
Move generic confirmation templates from shared to generic 2023-03-21 12:03:37 +00:00
Sage Abdullah 55876d99bd
Use generic confirm_delete template in snippets DeleteView 2023-03-21 12:03:37 +00:00
Sage Abdullah 995263ffce
Add default confirmation message to generic DeleteView 2023-03-21 12:03:37 +00:00
Sage Abdullah 991c2be3ed
Show usage count with link to usage view on generic DeleteView delete confirmation 2023-03-21 12:03:37 +00:00
Sage Abdullah 8bb055652c
Add support for showing on delete information on generic usage view 2023-03-21 12:03:37 +00:00
Sage Abdullah 6165f8a004
Show content type on usage view table 2023-03-21 12:03:37 +00:00
Sage Abdullah 78b94f567c
Add on_delete information helpers to reference index 2023-03-21 12:03:36 +00:00
Sage Abdullah a857332299
Show more descriptive info for references in StreamFields
Show the block path and label to better understand which block has the reference
2023-03-21 12:03:36 +00:00
Sage Abdullah 6398443ad7
Reduce queries when accessing reference index records
Make use of cached properties and ContentType's manager cache
2023-03-21 12:03:36 +00:00
Andy Babic f680f188f3 Add useful properties to Locale
- Update get_display_name() to always return a string
- Add documentation and unit tests
2023-03-21 08:02:40 +10:00
LB Johnston 65f2eaa4d2 Documentation - Clean up minor formatting issues 2023-03-21 08:02:25 +10:00
zerolab d51ec00ce1 Fix TableBlock initialisation
- move Handsontable render after load & resize width after load
- stops firing a resize event
- adjusts targets to account for the changed markup
- fixes #9107
2023-03-21 07:02:00 +10:00
Stefan Hammer 0016ee7dfd
Fix timezone handling of `TemplateResponse`s for users with a custom timezone
The PR #9628 missed the cases, where a TemplateResponse is used, which
defers the rendering to a point outside the override_tz() context
manager. This change re-uses the existing handling for the user's
preferred language.

Fixes #10243
2023-03-20 11:43:10 +00:00
Thibaud Colas 8705124eaf Add release notes for #10239 2023-03-20 09:51:51 +00:00
Sage Abdullah adaaf973e6 Prevent checkbox and radio button from shrinking 2023-03-20 09:51:51 +00:00
Sage Abdullah 58555abfb0 Prevent select inputs from overflowing the parent container 2023-03-20 09:51:51 +00:00
Sage Abdullah 90e848002d Add examples for long choices in Styleguide's form inputs 2023-03-20 09:51:51 +00:00
4the4ryushin 66a086da29 Add support for double quotes query string searches
- Fixes #9951
2023-03-19 21:30:21 +10:00
4the4ryushin df9437b4de Adopt shared header in Snippets type index header
- Fixes #9227
2023-03-19 20:53:31 +10:00
Satvik Vashisht 4ee60b5d47 Adopt the pageurl template tag over `page.url` where possible
- Fixes #10125
- So that determining page URL is more performant - see https://docs.wagtail.org/en/stable/advanced_topics/performance.html#page-urls
2023-03-18 07:35:27 +10:00
Himanshu Garg 427f5623d9 Update leftover status-tag class usage to use status template tag
- Closes #10129
- Relates to #8656 & #9721
2023-03-18 07:10:24 +10:00
Thibaud Colas fdc36a6989 Revert FieldRowPanel documentation removal, clarifying differences. Fix #10061 2023-03-14 22:44:11 +00:00
dependabot[bot] 0264e78929 Bump webpack from 5.67.0 to 5.76.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.67.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.67.0...v5.76.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-15 07:23:10 +10:00
Matt Westcott 71563ec720 Release note for #10099 2023-03-14 14:28:33 +00:00
Sage Abdullah 909e7fedbf Update docs to reflect snippet deletion hook changes 2023-03-14 14:27:22 +00:00
Sage Abdullah f3637ad857 Remove unused snippets delete-multiple view 2023-03-14 14:26:14 +00:00
Sage Abdullah 1db65a3fe0 Add "No, don't delete" link in generic delete confirmation template 2023-03-14 14:26:14 +00:00
Sage Abdullah 7a14b0b772 Call {before,after}_delete_snippet hooks in snippets delete bulk action view 2023-03-14 14:26:14 +00:00
Matt Westcott 87650344e2 Fill in release date for 4.2.1 2023-03-13 10:14:07 +00:00
Matt Westcott bcf5b6459f Fill in release date for 4.1.3 2023-03-13 10:14:00 +00:00
Sage Abdullah cfcfd85525
Clarify ClusterableModel requirements for using relations with RevisionMixin-enabled models 2023-03-13 09:35:05 +00:00
Andy Chosak 6eca0004b3 Fix paginated results count on document search #10220
Paginated document search results currently always show the number of
documents per page instead of the total number of documents in the
search results.

For example, if a document search
(at http://localhost:8000/admin/documents/)
returns 100 results, and the results are paginated by 20, the results
view always says "There are 20 matches", when it should instead say
"There are 100 matches".

This commit fixes that bug and adds a unit test to cover it.
2023-03-12 20:28:50 +10:00
Daniel Kirkham af57a3eb7e Add ability to disable search indexing for a model #9821
- Add tests for search disable capability
- Update index disable to use empty search_fields property
- Relates to #7570
2023-03-12 20:16:19 +10:00
LB Johnston efe7202575 Add changelog for #10216
- Relates to #10206
2023-03-12 19:41:42 +10:00