0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00
Commit Graph

12816 Commits

Author SHA1 Message Date
Matt Westcott
d42eb4ed01 Release note for #8302 in 2.16.2 2022-04-11 10:28:49 +01:00
Matt Westcott
7ad87c7d93 Ensure 'next' param on image / doc listings always links back to index page, not results view
Fixes #8291. When results listings are generated as partial AJAX responses through the listing_results review, the 'next' parameter on those results should point back to the main 'index' view so that on return from the edit view, the user gets back a full page rather than a partial response.
2022-04-11 10:14:37 +01:00
Dan Braghis
13b60a2688 Update changelog/release notes for 2.15.5 and 2.16.2 backports 2022-04-10 10:10:08 +01:00
AndresMRM
483b7d27b3 Add internationalisation UI to modeladmin
Includes changes from #6230

Co-Authored-By: Dan Braghis <dan@zerolab.org>
2022-04-10 09:17:41 +01:00
John-Scott Atlakson
e7758d58cb Automatically ignore GenericRelation when copying pages 2022-04-10 09:00:06 +01:00
Andy Chosak
9943b74c33 Cleanup unused pagination_query_params variable
Some search views populate an used `pagination_query_params`
variable which is no longer used anywhere in search templates.
This commit cleans this up.
2022-04-09 22:34:50 +10:00
Abdul
134bd19bef add ability for form builder to split choices by newline
- fixes #3001
- keep support for comma separated lists if supplied
2022-04-09 22:30:10 +10:00
Dan Braghis
54e9d09421 Release notes for #8161 2022-04-08 17:47:10 +01:00
Dan Braghis
b5e47a9adc Add full test for copy then publish from edit screen
tl;dr - EditView builds the page instance from its latest revision and that is what is passed to the form and ultimately submitted.

In order to test the `translation_key`s for orderables, we need to be as close to it as possible, a simple `page.copy()` then `page.save_revision().publish()` doesn't capture the subtleties
2022-04-08 17:42:34 +01:00
Kalob Taulien
b34d7f3678 Fix IntegrityError for Orderable translation key on copy 2022-04-08 17:42:34 +01:00
Steve Stein
8bbf41627b
Implement new slim page editor header with breadcrumb (#8231)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
Co-authored-by: Dan Braghis <dan@zerolab.org>
Co-authored-by: Karl Hobley <karl@kaed.uk>
2022-04-08 17:36:47 +01:00
Thibaud Colas
a34e267b9d Add release notes for #8310 2022-04-08 11:51:09 -04:00
Thibaud Colas
8694317fb4 Add back support for custom attributes on menu items 2022-04-08 11:51:09 -04:00
Thibaud Colas
4dc5f3c595 Remove legacy sidebar, refactoring slim sidebar implementation 2022-04-08 11:51:09 -04:00
Matt Westcott
d43b62a348
Add Vaibhav Shukla to contributors 2022-04-08 11:59:40 +01:00
Vaibhav Shukla
cae43944e7
Slight clarification on getting started guide (#8300)
* Clarification b/w IMPLEMENTATION and SETUP guide
2022-04-08 11:58:58 +01:00
John-Scott Atlakson
38f2e0b5b5 Fix page copy in Wagtail admin ignores exclude_fields_in_copy 2022-04-08 10:01:17 +01:00
Coen van der Kamp
5c31aad368 Pin sphinx-wagtail-theme==5.1.1 2022-04-08 09:10:22 +10:00
Coen van der Kamp
7edb577d94 Pin sphinx-wagtail-theme==5.1.0 2022-04-07 18:53:52 +01:00
Kalob Taulien
de005bc36a
Move badges under logo; added monthly downloads badge
* Move badges under logo; added monthly downloads badge

* Fixed copy/paste error

* Moved badges out of h1 tag
2022-04-07 10:19:29 -06:00
Kevin
0ed4375c3d Fixes incorrect link to Wand docs 2022-04-07 16:20:43 +01:00
Kyle J. Roux
844efa696a Ensure thumb_col_header_text is used by ThumbnailMixin correctly
- fixes #8269
because you cannot dynamically set attributes on bound methods, we need to update the current classes version of admin_thumb so it can be accessed in sub classes
2022-04-08 00:23:45 +10:00
Hitansh Shah
0b8a8c2024 Added image management command to purge and regenerate renditions
- resolves #8107
2022-04-07 23:57:44 +10:00
eevel
1c7c5cfc0b Allow specifying an alternative storage backend for image renditions
- add setting `WAGTAILIMAGES_RENDITION_STORAGE`
- add AbstractRendition file storage to use new setting
- resolves #3183
2022-04-07 23:33:46 +10:00
LB Johnston
7d3ee400fe 3.0 release notes - fix heading 2022-04-07 23:28:03 +10:00
Jake Howard
5522769a9c Validate to and from addresses on email form
This will result in a migration, but the migration from a `CharField` to an `EmailField` won't hit the database, as `EmailField` is just a `CharField` with extra default validation.
2022-04-07 22:52:12 +10:00
Matt Westcott
44e41a72d3 Add note about use of template tags in 500.html 2022-04-07 22:25:41 +10:00
Matt Westcott
30c61353e8 Fix tag imports for html lang/dir attributes
Follow-up to #8220:

* project_template/500.html should not include template tags because they get parsed during `wagtail start` rather than on page render, and 500.html is static HTML by design - hard-code lang="en" instead
* remove redundant wagtailadmin_tags imports
2022-04-07 22:25:41 +10:00
LB Johnston
5f4942f9ad documentation - fix broken docs references
- remove 2.16 reference to setting that no longer exists
2022-04-07 12:52:03 +01:00
Caio Jhonny
21202e421e Add missing import django models (#8301)
Django models need to be imported
2022-04-07 12:18:37 +01:00
Matt Westcott
c5d66c7a1f Remove default_app_config for test apps and wagtail.core 2022-04-07 12:16:28 +01:00
Matt Westcott
cef90cfd88 Remove default_app_config settings
These are only required in Django < 3.2, which we no longer support.
2022-04-07 12:16:28 +01:00
Matt Westcott
096ab2a8b4 Release note for #8059 in 2.16.2 2022-04-06 19:26:39 +01:00
Dan Braghis
e777c22d70 Initialize locale attribute in SafePaginateListView.__init__ 2022-04-06 19:10:52 +01:00
Matt Westcott
7f46688741 Fix banner date logic
Months in `new Date(y, m, d)` are 0-based, just to be awkward
2022-04-06 18:01:54 +01:00
Matt Westcott
ad64ac3e91 Release note for #8292 2022-04-06 17:39:50 +01:00
Matt Westcott
d65d10d3de Release note for #8293 2022-04-06 17:38:44 +01:00
Matt Westcott
4902c0ab4b Remove assertNumQueries from deletion log test
as per https://github.com/wagtail/wagtail/pull/8289#discussion_r844114429 - it's too sensitive to changes to logic elsewhere.
2022-04-06 16:56:55 +01:00
Jake Howard
4aa362a9cc Prefetch specific model instances
This reduces the number of queries performed during delete, slightly.

Was 191 before this change
2022-04-06 16:38:58 +01:00
Jake Howard
71b77d2aed Log delete for all descendents of pages, not just direct children
This leads to a misleading audit log, where some pages aren't shown as being deleted
2022-04-06 16:38:58 +01:00
Matt Westcott
e897c0a3d1 Ditch html_declarations
Since it's unspecified where these are output on the page - and they get rendered once for each panel - there's no reason why we can't just output them as part of the panel rendering itself.
2022-04-06 14:40:39 +01:00
Matt Westcott
b884026d08 Move inline panel JS into inline_panel.html 2022-04-06 14:40:39 +01:00
Matt Westcott
895ffaed83 Ditch BaseFormEditHandler
Make get_form_class a standard feature of the base Panel instead.
2022-04-06 14:40:39 +01:00
Matt Westcott
40d88daeba Show / hide the comments toggle based on the presence of the comments formset, rather than hacking a flag into the form class 2022-04-06 14:40:39 +01:00
Matt Westcott
d5fdff57f9 Use media for privacy switch JS 2022-04-06 14:40:39 +01:00
Matt Westcott
a5a24f9ee6 Remove view media declarations
they're not a thing.
2022-04-06 14:40:39 +01:00
Matt Westcott
eb746589f4 Remove edit handler media from workflow task create/edit template
These forms are not edit-handler based, so this is redundant.
2022-04-06 14:40:39 +01:00
Matt Westcott
3716e5280b Include media declarations from panels on templates 2022-04-06 14:40:39 +01:00
Matt Westcott
1b73b033a7 Use cached_property for PanelGroup.BoundPanel.children 2022-04-06 14:40:39 +01:00
Matt Westcott
199fe7ad76 simplify FormSubmissionsPanel.render_html 2022-04-06 14:40:39 +01:00