Wykres commitów

12512 Commity (stable/2.16.x)

Autor SHA1 Wiadomość Data
Matt Westcott cbe9dc729b Version bump to 2.16.3 2022-09-05 13:19:56 +01:00
Matt Westcott 5b19bda5ee fix formatting of 2.15.6 release notes 2022-09-05 13:19:29 +01:00
Matt Westcott 7c5bcee93e Release notes for 2.16.3 2022-09-05 13:18:38 +01:00
Matt Westcott 9841a29438 Add release notes for 2.15.6 2022-09-05 13:15:44 +01:00
Matt Westcott ae5d00f7a1 Fix deep_update for Python 3.10
This is only used by the Elasticsearch backend, so we were missing test runs for it over all Python versions.
2022-09-02 16:31:55 +01:00
Matt Westcott 6262090f89 Pin flake8 to a version that's known good against the 2.16 codebase 2022-09-02 11:38:49 +01:00
Stefan Hammer 2855c3dc1e Improve locked_by-filter for locked pages report, fixes #9116
It now only displays users, which have actually locked something.
2022-09-02 11:31:25 +01:00
Karl Hobley 6ffdb0d9ec Set referer policy of upgrade notifcation to "strict-origin-when-cross-origin"
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy
- Since Django 3.1, all Wagtail admin responses have been given a referer-policy: same-origin header. See: https://chipcullen.com/django-3-referrer-policy-change/
- #8560
2022-05-19 19:06:46 +10:00
Matt Westcott 62e1e4e838 Version bump to 2.16.2 2022-04-11 15:57:39 +01:00
Matt Westcott c731e7bf23 Fill in release date for 2.16.2 2022-04-11 15:57:22 +01:00
Matt Westcott 5d76b678be Release note for #8298 in 2.16.2 2022-04-11 15:55:31 +01:00
Matt Westcott 5473b5643f Further locale picker fixes:
* Remove dropdown behaviour when switcher legitimately only contains a single locale
* Don't omit listing when there are no child pages, because it's possible to land on a page with no children when switching locales
2022-04-11 15:55:25 +01:00
Matt Westcott 24ac132dfc Prevent locale switcher in page chooser from breaking at the root level
Fixes #8079
2022-04-11 15:55:19 +01:00
Matt Westcott e40865f7cd Fill in release date for 2.15.5 2022-04-11 14:39:41 +01:00
Matt Westcott 555f620cfe Release note for #8328 in 2.16.2 2022-04-11 13:11:56 +01:00
Matt Westcott 4273ad28a0 Check get_url_parts return value in automatic redirect creation
Addresses #7999. get_url_parts _should_ always return a valid result since we only run it on sites that the page belongs to, but if it doesn't, we don't want it to error out (since this is only a background task).
2022-04-11 13:10:12 +01:00
Matt Westcott f10264595d Release note for #8302 in 2.16.2 2022-04-11 10:28:29 +01:00
Matt Westcott 8aab0b35a6 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:27:45 +01:00
Matt Westcott 6748f0fa69 Revert "Release note for #8302 in 2.16.2"
This reverts commit 03dafa8b1b.
2022-04-11 10:21:56 +01:00
Matt Westcott 03dafa8b1b Release note for #8302 in 2.16.2 2022-04-11 10:19:31 +01:00
Dan Braghis a46b4e59e5 Update 2.15.x changelog/release notes
[skip ci]
2022-04-10 10:06:20 +01:00
Dan Braghis 33245d8eab Ignore `GenericRelation` when copying pages
Co-Authored-By: John-Scott Atlakson <john-scott@greenlightgo.co>
2022-04-10 09:46:46 +01:00
Dan Braghis c1d813796a
Fix `IntegrityError` for `Orderable` translation key on copy (#8320)
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

Co-Authored-By: Kalob Taulien <4743971+KalobTaulien@users.noreply.github.com>
2022-04-10 09:06:25 +01:00
Dan Braghis 491449ed4f
Fix page copy in Wagtail admin ignores `exclude_fields_in_copy` (#8313)
Co-authored-by: John-Scott Atlakson <john-scott@greenlightgo.co>
2022-04-08 11:19:29 +01:00
Matt Westcott 947e254cc8 Release note for #8059 in 2.16.2 2022-04-06 19:26:25 +01:00
Dan Braghis bbecb562dd Initialize locale attribute in SafePaginateListView.__init__ 2022-04-06 19:19:30 +01:00
Matt Westcott 9dfb9433bd Fix banner date logic
Months in `new Date(y, m, d)` are 0-based, just to be awkward
2022-04-06 18:03:48 +01:00
Coen van der Kamp 88b529d057 Add Wagtail Space NL 2022 banner to docs (#8264) 2022-04-06 18:03:40 +01:00
Matt Westcott d13949d93c Release note for #8292 2022-04-06 17:38:21 +01:00
Matt Westcott f59b2da71b Release note for #8293 2022-04-06 17:37:28 +01:00
Jake Howard 2876d6078f Prefetch specific model instances
This reduces the number of queries performed during delete, slightly.
2022-04-06 17:20:43 +01:00
Jake Howard 9183fc8f85 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 17:20:43 +01:00
Matt Westcott bfd513cc7a missing word 2022-04-06 13:20:38 +01:00
Matt Westcott 1c338f375a Add upgrade note about Jinja2 compatibility to 2.15.5 release notes 2022-04-06 13:11:43 +01:00
Matt Westcott f6608f009b Pin Jinja2 to 3.0.x for testing, and add upgrade note 2022-04-06 13:09:48 +01:00
Matt Westcott 957c6fe15c Revert "Remove deprecated jinja2 references"
This reverts commit 31bf876f81.
2022-04-06 12:35:46 +01:00
Matt Westcott 4cdac49533 Doc formatting fixes for 2.15.5 release notes 2022-04-06 12:29:59 +01:00
Andy Chosak 1a28c44add Fix bulk publishing of pages without revisions
Currently bulk publishing raises an error if you include pages that
exist in the database without any revisions. This commit ensures
that a revision exists before the page is published.

Fixes issue 8187.
2022-04-01 15:18:36 -04:00
Thijs Kramer 4e494dd9a7 Fix permission error when sorting pages having page type restrictions 2022-03-29 08:50:34 -07:00
Seb 31bf876f81 Remove deprecated jinja2 references 2022-03-28 16:09:02 -07:00
Thibaud Colas 88ad19a2f0 Remove all style customisations for documentation, except banner. Fix #7987 (#7990)
All of those customisations predate #7956, which fixed the loading of the CSS, so they were likely only intended for our previous Sphinx theme.
2022-02-18 13:44:02 +00:00
Matt Westcott d44e2ecbf9 Test against jinja2 3.x
New installs of the 2.x branch are currently broken due to https://github.com/pallets/jinja/issues/1585, which the maintainer of jinja apparently does not intend to fix.
2022-02-18 11:43:27 +00:00
Matt Westcott 38eb213d54 Release note for #7985 in 2.16.2 2022-02-18 10:57:59 +00:00
Serafeim Papastefanos 948b0b8fc6 Update django-treebeard dependency to 4.5.1 or above (#7985)
The django-treebeard 4.3.x is not compatible with Django 4.x because of the dreaded ugettext alias removal problem. This makes sure that a proper django-treebeard version will be installed.

*IMPORTANT*: Please notice that django treebeard *does not* officially support django 4.x. However from my tests I have concludeded that it works fine after you install the version 4.5.x.
2022-02-18 10:55:51 +00:00
Matt Westcott 9becd60e1f Fill in release date for 2.16.1 2022-02-11 13:30:40 +00:00
Matt Westcott 22ad3839e5 Fill in release date for 2.15.4 2022-02-11 13:29:57 +00:00
Thibaud Colas 36ef082ac9 Add new version fo Wagtail Space docs banner. Fix #6089 (#7956)
* Add new version fo Wagtail Space docs banner. Fix #6089

* Fix closing date

Co-authored-by: Matt Westcott <matthew@torchbox.com>
2022-02-11 13:03:15 +00:00
LB Johnston e1ecfaab9d reorder nav (sidebar) imports so that hooks can still override them (#7954)
- main_nav_css & main_nav_js were added when the new slim sidebar was being built
- with the legacy styles/js - there was little risk of there being conflicts
- with the new sidebar CSS, this sidebar bundle comes with a large duplicate of what is in core.css so we should add it before the hooks run so that hook scan override if needed as per our documentation
- this is a temporary fix for #7943 - ideally we should avoid sidebar.scss bundle duplicating so much of the core css
- note: JS is lower risk but should follow the same convention
2022-02-11 11:02:43 +00:00
Matt Westcott f10de95b73 Prevent error on creating automatic redirects for sites with non-standard ports
Fixes #7942 - get_dummy_request should not include the port number in SERVER_NAME.
2022-02-11 10:41:17 +00:00
Matt Westcott 62b9c42d3d Release note for #7944 in 2.16.1 2022-02-10 15:43:35 +00:00