Wykres commitów

1921 Commity (e3b6e79a8e59468ffb9a4a84fba87fa7edaa76ef)

Autor SHA1 Wiadomość Data
Matt Westcott 49c5578b90 Release note for #7367 2021-08-03 19:56:07 +01:00
Matt Westcott d709e610af Fill in release date for 2.14 2021-08-02 14:01:40 +01:00
Karl Hobley beeb6066ad Changelog / release note for #6843 2021-07-30 11:22:59 +01:00
Jesse Menn 1a7563406e
Converts inline panel anchor to button to make keyboard focusable. (#7346)
* Converts inline panel anchor to button to make keyboard focusable.

* Adds type='button' and undoes change to  expanding_formset.js.

* Release notes for #7346

Co-authored-by: Storm Heg <storm@stormheg.co>
2021-07-24 11:22:28 +02:00
Matt Westcott 2c4db8f2b1 Release note for #7361 2021-07-23 10:09:06 +01:00
Matt Westcott 259c71a16b Add release note for performance improvements 2021-07-21 17:29:03 +01:00
Karl Hobley bea17ac8b6 Add a log action for copy_for_translation operation (#7352)
Currently, when a user copies a page for translation, the 'copy' log action is used.

This adds a more specific 'copy_for_translation' operation to be used instead when the user is translating.
2021-07-21 16:22:55 +01:00
Karl Hobley 8ba4bbae57 Changelog / release note / contributor for #7302 2021-07-20 18:43:21 +01:00
Matt Westcott f98bd6870d Release note for #7334 2021-07-14 13:16:02 +01:00
Matt Westcott 5a11ce0c5c Add release note section for 2.15 2021-07-13 17:10:47 +01:00
Matt Westcott 2bec229e12 Correctly handle embeds inside inline styles/entities in richtext contentstate conversion (#7338)
Fixes #4602 as per https://github.com/wagtail/wagtail/issues/4602#issuecomment-479539444 (option 2).

Previously, given HTML input such as:

    <p>
        <i>a bunch of text before <embed alt="somepic" embedtype="image" format="fullwidth" id="1"/> after</i>
    </p>

the `<embed>` would start a new block, but the converter would keep hold of references to currently-open tags such as the `<i>`, so that when the corresponding `</i>` tag was encountered, it could match it up to the opening tag and fill in the 'length' field on the resulting InlineStyleRange object. However, since the span length is calculated based on the text content of the _current_ block (which is now "after"), it would obtain the wrong result - or, when there is no content between the embed and the closing tag (and thus no current block), would throw the exception `'NoneType' object has no attribute 'text'`.

In this new approach, when the embed is encountered, the current block is closed _along with all of its styles and entities_, causing the lengths of those spans to be filled in correctly. After inserting the embed, the current block is then set to a replica of the previous block with all those styles and entities reopened, so that when the closing tag is finally encountered, the span length is correctly set based on the new 'after' block.
2021-07-13 11:20:10 +01:00
Matt Westcott c44c0a9800 Release note for #7324 in 2.13.4 2021-07-13 11:04:34 +01:00
Matt Westcott afe7813d92 Release note for #7324 in 2.12.6 2021-07-13 11:03:57 +01:00
Matt Westcott be857cc5e9 Release note / Upgrade consideration note for #7292 2021-07-12 16:55:21 +01:00
Coen van der Kamp 3f24beaae6 Add background information on multi site, multi instance and multi tenancy (#7228) 2021-07-09 17:05:28 +01:00
Karl Hobley 7d237092d1 Fix crash when user copies a page from a section they can't publish (#7313) 2021-07-09 17:01:58 +01:00
Andrew Stone ded8bacc5d Use DATETIME_FORMAT for localization in templates (#7321) 2021-07-09 16:33:02 +01:00
Matt Westcott e0ac8ae73d Support non-block validation errors on ListBlock (#7322) 2021-07-09 16:24:11 +01:00
Kevin Gutiérrez 4eb7c2c019 Change spin animation name (#7299)
The animation name `spin` is too generic, and it can be easily override by other libraries (eg. the code used in (django-json-widget)[https://github.com/jmrivas86/django-json-widget/blob/master/django_json_widget/static/dist/jsoneditor.min.css]) or by custom code, affecting the saving animation.
2021-07-08 16:29:54 +01:00
Matt Westcott 60a3365ce2 Add Daniel Fairhead to contributors 2021-07-07 16:30:36 +01:00
Petr Dlouhý 3f260f4598 add google data studo to oEmbed providers 2021-07-06 21:17:46 +01:00
Vlad Podgurschi f54e7e1e41 Add instructions on copying and aliasing pages to the editor's guide #7010 2021-07-06 20:44:10 +01:00
Daniel fee65a9345 Preserve `features` & `editor` kwargs on RichTextField.clone() (#7272) 2021-07-06 17:20:12 +01:00
Andrew Stone d6c92f30af Add missing block.super in extra_css/extra_js blocks (#7310) 2021-07-05 17:28:13 +01:00
Matt Westcott 9850ca7acf Fill in release date for 2.13.3 2021-07-05 11:08:36 +01:00
Matt Westcott d7bd351660 Release notes for #7306 and #7298 in 2.13.3 2021-07-02 12:10:59 +01:00
Matt Westcott 990e91a85a Release note for #7295 in 2.13.3 2021-06-29 13:36:15 +01:00
Matt Westcott ac00945d3b Ensure comparison view picks up request/instance-specific EditHandler customisations (#7285)
Some edit handlers, such as the 'unofficial' PerUserContentPanels recipe from #4749, vary their field list according to the current request/instance by hooking into bind_to. This was not being called on the comparison view, meaning that when these edit handlers are in use, the field list was never getting populated and so the view was wrongly reporting no changes.

Note that the bind_to method also allows binding a form, which we do still skip (since the comparison view doesn't construct one).
2021-06-29 13:15:33 +01:00
Matt Westcott 1750c01d05 Add release notes for 2.13.3 2021-06-28 14:12:56 +01:00
Storm Heg 3ee060ffd7
Add keyboard and screen reader support to Wagtail user bar (#6994). Fix #6108
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2021-06-26 20:53:44 +01:00
nmorduch 368049b835 Warn if StreamField doesn't use StreamFieldPanel (#7276) 2021-06-25 16:44:04 +01:00
Petr Dlouhý 50e4f5151d fix small youtube embed - allow to override max_width/max_height in EmbedBlock 2021-06-25 16:15:09 +01:00
Gordon Pendleton a64eb1f2f3 adjusted queries to ignore expired embeds (#7279) 2021-06-25 14:10:00 +01:00
Matt Westcott a28376a5c9 Give 404 pages a meaningful HTML title in project template (#7262)
Improve the generation of `<title>` tags as follows:

* use `page` in preference to `self` (self has been semi-deprecated ever since we added jinja2 support)
* Retrieve current site with `{% wagtail_site %}` rather than page.get_site so that it works on non-pages such as 404s
* Fill in the 'title' block on 404.html
2021-06-21 14:53:08 +01:00
Michael Brown 30ec4631d2 Disable image/document Update button on click (#6676) 2021-06-18 16:58:19 +01:00
Chris Pollard 5f7181e05d Fix: Prevent 500 error when filtering by content_type. (#6755) 2021-06-18 16:42:42 +01:00
Jake Howard d5b955b0e4 Exclude root pages from `ModelAdmin`s (#7213)
Previously, this would fail, as `user_can_copy_obj` doesn't handle root
pages. Root pages also are special in a number of ways, and handling
copying is tricky and non-obvious.

If someone needs to show root pages (for some reason), they'll have to
special case them themselves.
2021-06-18 14:10:39 +01:00
Matt Westcott 74e3c1764f Release note for CVE-2021-32681 in Wagtail 2.13.2 2021-06-17 11:32:07 +01:00
Matt Westcott f108167111 Release note for CVE-2021-32681 in Wagtail 2.12.5 2021-06-17 11:31:34 +01:00
Matt Westcott 5954921cdf Release note for CVE-2021-32681 in Wagtail 2.11.8 2021-06-17 11:31:28 +01:00
Chris Pollard c9a55d8b1b Fix tagged page page copy regression in _copy_m2m_relations (#7224)
Fixes #7230
2021-06-11 14:08:55 +01:00
Matt Westcott 4abb53275b Fill in release date for 2.13.1 2021-06-01 15:51:13 +01:00
Matt Westcott 9f4b9f36c9 Release note for #7223 in 2.13.1 2021-06-01 14:05:04 +01:00
Alex fd4ed6aaeb Fix order
This change fixes promotion pages order.
2021-05-30 14:47:33 +02:00
Matt Westcott 7c6db207a8 Release note for #7216 in 2.13.1 2021-05-28 16:48:52 +01:00
Matt Westcott a56143b90b Add release note for #7212 in 2.13.1 2021-05-28 16:39:24 +01:00
Matt Westcott de9588590b Allow workflows to be disabled (#7218)
Introduce a WAGTAIL_WORKFLOW_ENABLED setting; when false, the workflow report and settings menus are hidden, permissions are not registered, moderation-related dashboard panels on the homepage are skipped, workflow actions on add/edit page are hidden, and model methods such as page.current_workflow_state return None / False immediately without any db queries.
2021-05-26 19:23:28 +01:00
Matt Westcott 4dc68550bc
Reorganise snippet admin URLs to avoid ambiguous paths (#7208)
* Reorganise snippet admin URLs to avoid ambiguous paths

Snippet admin views allow for arbitrary strings as primary keys, and the current URL patterns don't adequately namespace these from reserved words like 'add' - for example, a snippet with the primary key 'add' would have an edit URL that collides with the add view at `/admin/snippets/foo/bar/add/`.

This is unlikely to come up in practice, but it does mean that our urlconf is more sensitive to ordering than it needs to be. Rearrange so that the verb (add, edit, delete) consistently comes before the pk, and add redirects to handle the legacy URLs.

* Release notes for #7208

Co-authored-by: Storm Heg <storm@stormheg.co>
2021-05-25 17:22:07 +02:00
Karl Hobley 4daeed1bf5 Add locale filter into snippet chooser (#6699) 2021-05-17 13:24:03 +01:00
Matt Westcott 08be45dbd9 Release note for #7180 2021-05-17 12:32:19 +01:00
Helen Chapman 868f19c95d
Prevent “Forgotten password” link from overlapping with field on mobile devices (#6748)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2021-05-14 22:26:44 +01:00
Matt Westcott 53ab6741b5 Fill in release date for 2.13 2021-05-12 14:58:08 +01:00
Matt Westcott aa2d10c713 Release note for #6477 2021-05-11 15:05:59 +01:00
Storm Heg 4d67cc8bb3
Add release notes for #7126 2021-05-04 21:16:11 +02:00
Matt Westcott 85c97fe87f Drop support for Django 2.2 2021-04-30 10:33:41 +01:00
Karl Hobley ab485064e9 Changelog / release note for #7069 2021-04-26 16:56:39 +01:00
Matt Westcott 5885494908 Move #6962 release note to 2.14 2021-04-23 12:52:21 +01:00
Storm Heg 22bb5746bd
Changelog / release note for #6962 2021-04-23 11:59:17 +02:00
Karl Hobley 06be13fda0 Changelog / release note for #7077 2021-04-22 17:29:24 +01:00
Karl Hobley feab09a6d6
Start 2.14 (#7081)
* Version bump to start work on 2.14

* Removed StreamValue.stream_data and StreamValue.TupleView

* Rotate deprecation warning classes

* Set up changelog and release notes for 2.14

* Changelog / release note for #7023

* Add 2.14 to the compatibility table in the upgrading guide
2021-04-22 17:10:57 +01:00
Matt Westcott e1766874eb Finalise release notes for 2.13rc1 2021-04-20 20:28:33 +01:00
Matt Westcott ebcb6f01c8 Release notes for #6702 / #7050 2021-04-20 18:59:13 +01:00
Jacob Topp-Mugglestone 13672e702c Add initial draft of commenting update notes (#7025)
* Add initial draft of commenting update notes

* Add code example for CommentPanel upgrade consideration

* Remove unnecessary Draftail text format upgrade note
2021-04-20 18:25:30 +01:00
Coen van der Kamp 3b3ae52509 Add Sphinx theme changelog and release notes 2021-04-20 11:45:19 +02:00
Matt Westcott 8f5a2a8fe9 Formalise support for Django 3.2
Fixes #6981
2021-04-19 12:03:38 +01:00
Ihor Marhitych deeb771032 Save revision when restart workflow (#6990) 2021-04-19 11:02:49 +01:00
Dan Braghis b21557319c Release notes for #6946 2021-04-19 10:49:55 +01:00
Matt Westcott 00aea17030 Fill in release date for 2.12.4 2021-04-19 10:10:42 +01:00
Matt Westcott b3f3df2764 Release note for CVE-2021-29434 in 2.11.7 2021-04-19 10:09:57 +01:00
Matt Westcott a44312f48f Release note for CVE-2021-29434 in 2.12.4 2021-04-19 09:59:01 +01:00
Matt Westcott 177bc51cd6 Add release notes for 2.12.4 2021-04-19 09:45:19 +01:00
Scott Cranfill 42ddd8ad55
Apply chevron padding fix to all applicable `select` elements (#6980)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2021-04-16 21:02:36 +01:00
Thibaud Colas 88cebcd43a
Make all Collection form fields translate-able (#6739) 2021-04-16 17:31:38 +01:00
Storm Heg e7942a05ad
Choosers: refactor to use SVG icons (#6998)
* Choosers: refactor to use SVG icons

Refactored non-deprecated choosers to use SVG icons. Custom choosers can
also supply their own svg icons using the `chosen_icon` and
`unchosen_icon` blocks.

We are keeping the relevant icon font css for custom choosers around to
prevent breaking existing custom choosers.

Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2021-04-16 15:43:13 +01:00
Matt Westcott 02ad797673 Support slicing on StreamValue (#7013)
Fixes #7012
2021-04-16 14:41:49 +01:00
Martin Sandström c0a84975e7 Add ability to export redirects using reports (#6305) 2021-04-15 16:37:05 +01:00
Matt Westcott 68862b5c79 Add missing changelog note for telepath streamfield 2021-04-15 11:09:51 +01:00
Karl Hobley dd3caad56d Release note for #6528 2021-04-15 11:07:41 +01:00
Andy Babic 9630967e0e Use resolve_url() instead of reverse() for pageurl fallbacks (#7002) 2021-04-14 15:26:11 +01:00
Karl Hobley d30856d1b9 Changelog / release note for #6974 2021-04-09 11:00:49 +01:00
Matt Westcott 255a1e8641 Include submitter in workflow submitted email notification (#6976) 2021-04-07 19:42:06 +01:00
Karl Hobley ea1dd1a44d Release note for #6908 2021-04-06 13:15:16 +01:00
Storm Heg 1ff679f861
Add `wagtail.reorder` audit log action
This adds a special audit message for reordering pages.

Previously, reordering pages under the same parent would show the
slighly misleading message that the page was moved to the same parent.
A special page reordered message would be more appropiate in this case.
2021-03-31 18:48:44 +02:00
Storm Heg 520fa23ced
Include user in log entry when reordering pages
Include `request.user` so `Page.move() can include it in it's log entry.
This will prevent the log entry from having no acting user associated
with it (#6761).
2021-03-31 18:45:29 +02:00
Samir Shah 0daae4a2b8 Allow a target variable to be specified for get_settings template tag. (#6891) 2021-03-26 23:28:07 +00:00
Susan Dreher 09431f7b22 Sanitize return_url (#6909) 2021-03-25 19:09:11 +00:00
Sagar Agarwal 400bc57536 Add type="button" to 'set privacy button' (#6882) 2021-03-25 14:01:27 +00:00
Sagar Agarwal f9d1ec0bf7 Fix pagination url for 'view users in a group' (#6880) 2021-03-25 13:23:18 +00:00
Thibaud Colas 8b07ad4cea
Add support for SVG icons to SearchArea subclasses and register_admin_search_area (#6493) 2021-03-09 11:33:06 +00:00
Thibaud Colas d88343cbb0
Switch register_setting, register_settings_menu_item to use SVG icons (#6107, #6649) 2021-03-09 10:58:53 +00:00
Matt Westcott 73327bad54 Fill in release date for 2.12.3 2021-03-05 13:30:36 +00:00
Matt Westcott 89d20381cd Fill in release date for 2.11.6 2021-03-05 13:29:00 +00:00
Matt Westcott d61580eeac Release note for #6818 in 2.12.3 2021-03-05 12:33:40 +00:00
Matt Westcott 0b03666c5f Release note for #6818 in 2.11.6 2021-03-05 12:33:40 +00:00
Matt Westcott a02e7b28b8 Release note for #6872 in 2.12.3 2021-03-05 11:41:37 +00:00
Matt Westcott fe704905ad Release note for #6872 in 2.11.6 2021-03-05 11:41:37 +00:00
Matt Westcott cf18ee7a73 Release note for #6871 in 2.12.3 2021-03-04 14:00:55 +00:00
Matt Westcott 03d957d400 Release note for #6871 in 2.11.6 2021-03-04 14:00:55 +00:00
Matt Westcott 9ed99c2d71 Release note for #6854 in 2.12.3 2021-03-04 13:34:12 +00:00
Matt Westcott a570563be7 Release note for #6854 in 2.11.6 2021-03-04 13:33:38 +00:00
Andy Babic c5f49274c8 Release notes for #6847 2021-03-03 13:15:10 +00:00
Andy Babic cd0fd04a67 Release notes for #6846 2021-03-03 13:03:46 +00:00
Andy Babic 54f190d4bb Release notes for #6845 2021-03-03 07:30:50 +00:00
Andy Babic 86824bb5c4 Release notes for #6849 2021-03-02 20:43:12 +00:00
Andy Babic cae9bbbea2 Release notes for #6850 2021-03-02 20:00:28 +00:00
Karl Hobley c002a04576 Changelog / release notes for #6819 and #6320 2021-02-26 09:33:44 +00:00
Karl Hobley 99542475de Changelog/release note for #6639 2021-02-25 10:12:54 +00:00
Matt Westcott 3a057f2fd8 Release note for #6822 in 2.12.2 2021-02-18 09:21:38 +00:00
Matt Westcott 6d1a61ba7e Release note for #6822 in 2.11.5 2021-02-18 09:20:51 +00:00
Matt Westcott 391f578c8e Fill in release date for 2.12.1 2021-02-16 16:08:05 +00:00
Matt Westcott bc1458f9e3 Remove duplicates before applying unique constraint on embed hash 2021-02-16 15:49:54 +00:00
Matt Westcott 0a3d044c9f Fill in release date for 2.11.4 2021-02-16 12:37:17 +00:00
Matt Westcott 14ba9efa18 Release note for #6757 in 2.12.1 2021-02-16 12:30:57 +00:00
Matt Westcott d6ddb997c6 Release note for #6757 in 2.11.4 2021-02-16 12:30:51 +00:00
Matt Westcott 0a8ab74d70 Make the dummy Admin model a managed model
Fixes #6810. As per https://code.djangoproject.com/ticket/13816 , unmanaged models are included in dumpdata by design and so unmanaged models without a database table are not valid.
2021-02-16 09:57:12 +00:00
Cynthia Kiser afc3349c94 Save empty thumbnail_urls as empty strings 2021-02-15 16:27:51 +00:00
Matt Westcott 41ff62a056 Release note for #6756 in 2.12.1 2021-02-03 11:00:18 +00:00
Matt Westcott 920aba28ba Release notes for #6713 and #6756 in 2.11.4 2021-02-03 10:59:08 +00:00
Matt Westcott 1a7a5816a5 Fill in release date for 2.12 2021-02-02 16:09:16 +00:00
Matt Westcott cb29fbba65 Release note for #6713 2021-01-29 16:12:55 +00:00
Thibaud Colas fce19a8059 Add release notes for #6730 2021-01-29 10:24:14 +00:00
Matt Westcott df125b1652 Release notes for #6718 2021-01-26 10:55:26 +00:00
Matt Westcott 23096b9f73 Show required asterisks for required descendant blocks of required streamfields (#6715)
Fixes #5983; possibly also has a bearing on #4306. A CSS rule dating from the original StreamField design was hiding the 'required' asterisk on fields within a required StreamField, presumably on the mistaken belief that they duplicate the information given by the top-level asterisk on the streamfield. (In #5983 this was reported as a regression in 2.7 when the react-streamfield CSS was introduced, so it's possible that the old design had something to mitigate this, e.g. an asterisk being inserted elsewhere.)
2021-01-21 14:36:57 +00:00
Matt Westcott c3abf40ea5 Add release notes / changelog section for 2.13 2021-01-19 09:47:31 +00:00
Matt Westcott fe51d1c6ed Changelog entry for #6409 2021-01-18 17:59:43 +00:00
Michael Brown cadb5456c0 Apply scss styling to collection_choice_field (#6683) 2021-01-18 17:06:29 +00:00
Matt Westcott c0c7f1bd5d Release note for #6635 2021-01-18 15:11:46 +00:00
Andy Babic f905e705da Add Page.specific_deferred (#6661) 2021-01-18 13:25:55 +00:00
Will Giddens 2da410b2e0 Add combined index for Postgres search backend. (#6548)
Fixes #6546
2021-01-18 12:19:18 +00:00
David Beitey 3a5b7255ad Change UniqueConstraint for wider database support (#6607)
This fixes #6393 by modifying the constraint to use an IN condition
which supports both Postgres and SQL Server. Previously, the `|` (OR)
condition was only supported by Postgres because SQL Server only
supports AND conditions.

The implementation follows suggestions from @gasman in
https://github.com/wagtail/wagtail/issues/6393#issuecomment-732161057:

* Migration 0050 is modified to not break on SQL Server
* Added migration 0060 to add or replace the constraint

Additionally, this allows for and documents a `DATABASE_DRIVER` env
variable to be set for testing, to allow a different SQL Server driver
(e.g. FreeTDS on Mac/Linux); and adds the specific `host_is_server`
option for FreeTDS (won't affect SQL Server Native Client on CI).
2021-01-18 11:52:52 +00:00
Matt Westcott 758fa2b863 Release note for #6654/#6658 2021-01-15 20:20:00 +00:00
Robert Rollins d18ffb0233 Implemented a 'choose' permission for Images and Documents (#6466)
This PR adds the 'choose' permission discussed in #4488. It limits Image and Document choosers to showing only those Collections (and their contents) for which the current user has the Choose permission.

It grants Choose permissions to the Root Collection to every existing Group that has the "Can access Wagtail admin" perm, via data migration. So there will be no change in behavior unless the user goes in and alters the Choose perms for their site's groups.

This PR has no effect on anything except choosers. The Image and Document index pages are still controlled solely by the 'add' and 'change' permissions, as those are only accessible by users who have those permissions in the first place. This means that it's now possible to configure a Group to allow its members to choose images from existing Collections when editing pages, *without* them being able to edit said images or add new ones.
2021-01-05 12:23:49 +00:00
Matt Westcott 09fb115a2d Catch JSON decode errors in oembed responses (#6648)
Fixes #6646 - for private videos, Youtube's oembed endpoint returns the text "Forbidden", but with a 200 status code, which fails JSON decoding.
2020-12-18 15:59:51 +00:00
Vadim Karpenko 4cfd303db9 Check action menu items (pages and snippets) for None before using (#6566) 2020-12-15 19:17:53 +00:00
Matt Westcott 3768483352 Fill in release date for 2.11.3 2020-12-10 17:59:21 +00:00
Matt Westcott 49136ea4a5 Prevent error on publish check in create_log_entries_from_revisions (#6628)
Fixes #6498
2020-12-10 17:34:57 +00:00
Matt Westcott 971bdc0799 Fix combining locale/translation_of API filters with search (#6627)
Fixes #6626
2020-12-10 16:26:41 +00:00
Matt Westcott f4702646bd Release note for #6572 2020-12-09 16:28:20 +00:00
Dan Braghis 05587e0d84 Allow customising image/document admin forms (#6462) 2020-12-09 12:35:19 +00:00
Andreas Nüßlein 6a7a5756d9 Add string representation to image Format() (#6608)
when checking on the currently registered Formats, e.g. with `get_image_formats()` the output is now easier to read.
2020-12-09 12:16:26 +00:00
Matt Westcott 8d9e864581 Release note for #6485 2020-12-08 18:23:56 +00:00
Matt Westcott 9a953fd93c Additional release notes for #6559 2020-12-08 16:00:47 +00:00
Scott Cranfill bba831d2cf
Update pagination icons to use SVGs (#6573)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-12-04 17:03:50 +00:00
Alex Sa 01d3854696
Add collection_id param to document chooser pagination handling. Fix #5913 (#6529)
Make sure document chooser pagination preserves the selected collection when moving between pages

Co-authored-by: Alexander Sajzew <a.sajzew@alexsa.de>
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-12-02 12:41:37 +00:00
Karran Besen 65d0cdf55f
Fix breadcrumb margin overlapping burger menu. Fix #6590 (#6597)
Stop menu icon overlapping the breadcrumb on small viewport widths in page editor

Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-12-02 12:05:13 +00:00
Matt Westcott 56a92d466e Fill in release date for 2.11.2
Conflicts:
	CHANGELOG.txt
2020-11-17 15:44:24 +00:00
Cynthia Kiser 28cee081b2 Add custom oEmbed finders for Facebook and Instagram (#6550)
Move code from https://www.codista.com/en/blog/wagtail-instagram-new-oembed-api/ into core

Add custom oembed finder for Facebook

Apply suggestions from @originell's code review

Co-authored-by: Luis Nell <luis.nell@codista.com>

FIXUP More places to change the exception name (and a linter fix)

Extend Instagram/Facebook tests to check HTTP request

Add documentation for omitscript parameter
2020-11-17 15:06:24 +00:00
Matt Westcott 9ef3685efc Allow deleting the default locale (#6553)
Fixes #6533
2020-11-17 11:25:52 +00:00
Matt Westcott 414571cc99 Release note for #6544 2020-11-16 17:15:32 +00:00
Jérôme Lebleu f88e6f91ff Fix header icon name in settings' edit view (#6554) 2020-11-16 15:02:19 +00:00
Matt Westcott 236632d815
Handle get_supported_language_variant returning a language variant not in LANGUAGES (#6547)
* Handle get_supported_language_variant returning a language variant not in LANGUAGES

Fixes #6539

* Handle LANGUAGE_CODE that isn't in LANGUAGES

* Release note for #6547
2020-11-16 11:51:32 +00:00
Matt Westcott a888d3383c Gracefully handle missing Locale records on Locale.get_active and .localized (#6549)
Fixes #6540
There are various code paths where Page.localized and similar can be called even when WAGTAIL_I18N_ENABLED is False, and since it's entirely likely that hand-rolled i18n mechanisms and ad-hoc configuration changes (e.g changing LANGUAGE_CODE) will break the Locale model's assumptions about how things are meant to work, we need to provide sensible fallback behaviour for when the current active locale, or the default locale as per LANGUAGE_CODE, does not have a corresponding Locale record:

* Locale.get_active() will fall back on the default LANGUAGE_CODE locale, or raise Locale.DoesNotExist if that one does not exist either;
* TranslatableMixin.localized (along with Page.localized and Page.localized_draft) will handle a missing Locale record by falling back on the default LANGUAGE_CODE locale, or failing that, returning self.
2020-11-16 10:31:01 +00:00
Karl Hobley 792a9d272b Fetch the depth field of page translations on the edit view
This field is used in the `.can_edit()` permission check
2020-11-13 17:14:22 +00:00
Matt Westcott be45cee2aa Fill in release date for 2.11.1 2020-11-06 17:30:55 +00:00
Matt Westcott f378f48e14 Prevent errors on get_url_parts when a non-content-language locale is active (#6521)
Fixes #6510 and #6511

Catch the LookupError from get_supported_content_language_variant so that if the active language is not one that is recognised as a content language, the URL prefix will be left unchanged from the page's reported locale.

Additionally, skip the `translation.override` when WAGTAIL_I18N_ENABLED is false; this accounts for the fact that existing sites may have used alternative / custom i18n implementations involving i18n_patterns, and on these sites we can't rely on the page's locale field to be meaningful. That way, we restore the pre-2.11 behaviour: if the existing i18n code was using some kind of wrapper around the get_url_parts call, then that will work again; and if not, the URL will reflect the current active locale, which is no worse than before.
2020-11-06 17:04:18 +00:00
Matt Westcott 3c984b9871 Avoid circular import between wagtail.admin.auth and custom user models (#6522)
Fixes #6518

If the models.py containing a custom user model directly or indirectly imports wagtail.admin.auth, this causes a circular dependency because wagtail.admin.auth attempts to import django.contrib.auth.views, which in turn depends on the custom user model. Fix this by moving the django.contrib.auth.views import inside reject_request.
2020-11-06 09:35:21 +00:00
Sævar Öfjörð Magnússon a541510417 Additional safeguard to check if a cached site is from an older version of Wagtail (#6515) 2020-11-04 12:22:43 +00:00
Matt Westcott 14f1d8d59a Add release notes section for 2.11.1
Conflicts:
	CHANGELOG.txt
	docs/releases/index.rst
2020-11-04 10:45:15 +00:00
Matt Westcott 39f953eca3 Release note for Python 3.9 support (#6508) 2020-11-03 11:58:01 +00:00
Matt Westcott 330f0dde15 Fill in release date for 2.11 2020-11-02 15:06:22 +00:00
Matt Westcott 94f6b755b2 Version bump to start work on 2.12 2020-10-23 16:55:21 +01:00
Karl Hobley 6234023f39
Changelog / relase note for internationalisation (#6492)
* Changelog / relase note for internationalisation

* Apply suggestions from code review

Co-authored-by: Matt Westcott <matthew@torchbox.com>
2020-10-23 14:26:44 +01:00
LB Johnston f6dce3d6df Update changelog entries for @samgans 2020-10-22 19:46:07 +10:00
Karl Hobley f0ce1f4775 Replace pushPage/popPage with more flexible gotoPage method
- page explorer
2020-10-22 19:45:34 +10:00
Anton Zhyltsou 41eccc72bc Consistently redirect to admin home on permission denied
* Catch PermissionDenied exceptions in require_admin_access decorator
* Fixed permissions errors for the documents views
* Added permissions tests for the images views
* Fixed some tests for limited permissions
* fixes #6352
2020-10-22 00:10:24 +10:00
Coen van der Kamp fd5e6b657f Switch breadcrumb icons to SVG 2020-10-21 23:57:09 +10:00
Matt Westcott accdbd2174 Mark 2.11 as an LTS release 2020-10-21 12:14:04 +01:00
meghanabhange 3a2f2a6ea3 form_classname meta in FieldBlock (#6470) 2020-10-20 19:17:54 +01:00
Sævar Öfjörð Magnússon b7643f869d Fix spacing around the privacy indicator panel. (#6454) 2020-10-20 13:07:03 +01:00
Andy Babic cbf65ba645 Release notes for #6386 2020-10-19 21:37:28 +01:00
Matt Westcott 8e47b27ffc Fixed -> Fix 2020-10-19 21:31:32 +01:00
Jim Jazwiecki 024717fe0f add support for natural keys to group collection permissions for use in fixtures (#6211) 2020-10-19 21:31:10 +01:00
Matt Westcott 27432e6c3f Release note for #5976 2020-10-18 15:31:56 +01:00
Karl Hobley 44d40292e8 Add release note for page aliases (#6468) 2020-10-16 11:01:10 +01:00
Karl Hobley 10137b0162 Changelog / release notes for #6440 and #6441 + some spelling fixes 2020-10-16 10:45:29 +01:00
Karl Hobley 7f7f9b4de1 Make snippets action menu hookable 2020-10-14 14:41:22 +01:00
Matt Westcott 7be5363dac
Avoid retranslating month / weekday names that Django already provides (#6301)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-10-09 14:16:40 +01:00
Karl Hobley 77610d1e64 Changelog / Release notes for #6434 and #6442 2020-10-06 16:02:48 +01:00
Matt Westcott dd42d91663 Release note / additional fix for #6339 2020-10-05 14:25:33 +01:00
jacobtoppm c5a7584553 Add changelog and contributor for #6423 2020-10-05 12:36:54 +01:00
Karl Hobley cf38b2457d Put quotes around some inline code 2020-10-03 14:43:03 +01:00
Karl Hobley 39d931d77d Javascript => JavaScript 2020-10-03 14:43:03 +01:00
Karl Hobley 6e5f89adf2 General spelling fixes 2020-10-03 14:43:03 +01:00
Karl Hobley 8251b4a6c7 Changelog / Release note / Contributor for #6420 2020-10-01 18:53:35 +01:00
Cynthia Kiser b817e869bf Open preview in new window (#6395)
Make this preview button match the other Preview/Draft/Live buttons in admin UI
2020-10-01 13:23:32 +01:00
thenewguy a88866c3c6 Force string url before passing to urlparse (#6341) 2020-09-30 08:10:50 +01:00
Karl Hobley 8605717b62 Revert "Force string url before passing to urlparse (#6341)"
This reverts commit 8a4b04209e.
This reverts commit c005e6fd29.
2020-09-29 16:52:29 +01:00
Karl Hobley c005e6fd29 Changelog / release note for #6341 2020-09-29 13:54:02 +01:00
Saptak S 61e8173625 Use get_admin_display_title in PageChooserPanel 2020-09-28 17:21:12 +01:00
François Poulain 0c6815910b Stronger check on blocks names (#6295)
Ref: https://github.com/wagtail/wagtail-react-streamfield/issues/54
2020-09-28 14:31:39 +01:00
Matt Westcott c1da0fe56d Inline PDF serving doesn't only apply on the edit view 2020-09-28 13:56:11 +01:00
Matt Westcott 2590fab0b6 Release note for #6410 2020-09-28 13:53:49 +01:00
Matt Westcott 8edf16e5ff Serve PDFs inline in the browser
Fixes #1158
Add config options WAGTAILDOCS_CONTENT_TYPES and WAGTAILDOCS_INLINE_CONTENT_TYPES to determine the Content-Type and Content-Disposition headers returned for documents when using the Django serve view, and default to application/pdf being served inline.
2020-09-28 07:22:58 +10:00
Scott Cranfill 70bb9d934b
Support SVG icons in ModelAdmin menu items (#6402)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-09-25 15:58:52 +01:00
Matt Westcott 890974320f Fill in release date for 2.10.2 2020-09-25 11:05:22 +01:00
Matt Westcott 510e52923a Skip content comparison in create_log_entries where revision cannot be restored (#6407)
Fixes #6368
2020-09-25 10:14:36 +01:00
Coen van der Kamp 0338cc37f7
Add icon sprite caching via local storage (#6243)
Improve Wagtail admin page load performance by caching SVG icons sprite in localstorage

Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-09-24 20:12:32 +01:00
Matt Westcott 3300e3b851 Consistently show user's full name (where available) in reports (#6400)
Add user_display_name template filter to simplify user display code

This replaces the `{{ some_rambling_expression_evaluating_to_a_user.get_full_name|default:some_rambling_expression_evaluating_to_a_user.get_username }}` pattern used all over the place.

Display user's full name (where available) in LogEntry listings

Don't use full name if it consists of whitespace (which happens on our test user models)

release note
2020-09-24 16:16:19 +01:00
Martin Mena 3d7f2d0905 Add missing condition for StreamBlockComparison 2020-09-23 11:26:14 -04:00
Dan Braghis 55d82d6167 Limit page-editor input changes to non-submit inputs (#6397) 2020-09-23 11:50:19 +01:00
Dino Perovic 1267468c4c Check preview mode before displaying the button 2020-09-21 14:34:43 +01:00
Matt Westcott 69919d1687 Move #6369 to 2.10.2 release notes 2020-09-21 14:31:06 +01:00
Karran Besen 0c8ad63adb
Fix admin submit inputs focus (#6369)
* Fix admin submit inputs focus

Co-authored-by: Coen van der Kamp <coen@fourdigits.nl>
2020-09-17 11:04:18 +02:00
Andy Babic 1c67aa6a48 Release notes for Tests for #6141 2020-09-03 20:42:39 +01:00
Andy Babic 0d8301e28f Release notes for #6190 2020-09-03 20:11:22 +01:00
Andy Babic 10d68fdd09 Release notes for #6362 2020-09-02 20:42:56 +01:00
Vince Salvino 7ec4b516fa Specify required python versions (#6366) 2020-09-02 17:52:00 +01:00
Matt Westcott 461abec5b5 Release note for #6370 2020-09-02 10:36:27 +01:00
Karran Besen d9449150b5 Fix remove icon class from wagtail userbar icon 2020-08-28 10:35:51 +01:00
Matt Westcott 63702d368b Add release notes for 2.10.2 2020-08-28 10:35:37 +01:00
Matt Westcott 30c1a4132c Release note for #6335 2020-08-26 14:17:18 +01:00
Matt Westcott 3b361673ee Fill in release date for 2.10.1 2020-08-26 14:14:13 +01:00
Matt Westcott e3bbccd814 Fix timesince_last_update for naive datetimes (USE_TZ=False)
Fixes #6345
2020-08-25 15:11:24 +01:00
Matt Westcott 23bec4345b Release note for #6336 2020-08-24 09:48:00 +01:00
Matt Westcott b111e100a6 Release note for #6329 2020-08-17 17:55:14 +01:00
Matt Westcott 3f1b41b823 Release note for #6319 2020-08-17 16:58:19 +01:00
Matt Westcott 46e5dbb5b0 Release note for #6322 2020-08-17 16:58:18 +01:00
Matt Westcott 58f5c29252 Add release note sections for 2.10.1 2020-08-17 16:58:18 +01:00
Matt Westcott f1959717e9 Fill in release date for 2.10 2020-08-11 10:30:26 +01:00
Robbie Mackay 437e3b9258 Replace unidecode with anyascii in wagtail.core.utils.string_to_ascii
- Add anyascii to replace unidecode
- Update wagtail.core.utils.string_to_ascii to use anyascii.
- Anyascii has a similar but not exactly the same encoding - see updates to tests.

Refs https://github.com/wagtail/wagtail/issues/3311
2020-08-07 17:48:58 +01:00
Matt Westcott bb3243b9a9 Use https oembed endpoints where available
Fixes #6288
Many of the oembed endpoints currently listed with an http:// URL now redirect to https://. Changing these to https:// saves a redundant redirect and avoids failures where the http URL has been blocked (see #6288). Also simplified the patterns for matching http or https - the group in `http(?:s)?` is redundant and should just be `https?`.
2020-08-07 17:36:05 +01:00
Karl Hobley de6d14a667 Release notes for #6267 and #6268 2020-08-07 15:51:09 +01:00
Matt Westcott ba16b4125d Release note for Django 3.1 support 2020-08-06 11:26:39 +01:00
Karl Hobley cb4f98b5f1 Release note for #6290 2020-08-04 16:03:15 +01:00
Kalob Taulien f3a20e0488
Add wagtail --version 2020-08-03 07:20:43 -06:00
Jesse Menn b934194622
Make page-level actions accessible to keyboard users in page listing tables (#6280)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-08-01 21:52:28 +01:00
Karl Hobley f3f932d2e5
Add before_{create,edit,delete}_snippet hooks 2020-07-30 08:08:40 +01:00
Matt Westcott 7451500054 Add release note sections for 2.11 2020-07-28 12:53:22 +01:00
Matt Westcott 622d439e6d Release note for workflow 2020-07-24 17:11:08 +01:00
Thibaud Colas d97f940e58 Release notes for #5885 2020-07-23 13:56:12 +01:00
Matt Westcott b8848ae2f5 Release note for #6250 2020-07-22 17:44:52 +01:00
LB (Ben Johnston) 1b3d190b3f
Fix group permission checkboxes not being clickable in IE11. Fix #5903 (#6115)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-07-21 22:24:14 +01:00
LB (Ben Johnston) 45ec139bc5
Hide snippets’ bulk delete for screen reader users as well (#6116)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-07-21 21:06:45 +01:00
Andreas Bernacca f9c5bab9cb
Add chevron to dropdowns that are missing them, and make "Site" label translateable (#6242)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-07-21 20:13:25 +01:00
Martin Coote 9f0dcf0097
Add skip link for keyboard users. Fix #5406 (#5780)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-07-21 18:16:36 +01:00
Matt Westcott 5714c2f71d Release note for 2.9.3 2020-07-20 10:38:07 +01:00
Matt Westcott 457643e686 Release note for 2.7.4 2020-07-20 10:37:13 +01:00
LB (Ben Johnston) e097cfaab2 Changelog update for #6151 & #6189 2020-07-16 16:20:44 +10:00
Matt Westcott 1ed501e5af
Sanitise window.location.hash when passing to jquery for tab handling (#6155)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-07-15 16:20:39 +01:00
Matt Westcott 9917d7d2e9 Additional documentation for next_url 2020-07-15 11:53:39 +10:00
Matt Westcott ee954b8fe6 Release note for #5240 2020-07-13 18:32:01 +01:00
Matt Westcott 0546237a15 Release note for #6093 2020-07-13 14:03:18 +01:00
Matt Westcott 34785b9085 Release note for #6196 2020-07-03 19:19:41 +01:00
Matt Westcott 8b1699437f Release notes for 2.9.2 2020-07-03 12:58:19 +01:00
Maxxen 4afdbdea56 added maxNumChildBlocks property and callbacks to disable adding/removing child blocks to sequence. Also made streamfield add-buttons dissapear when capacity is reached (#6070) 2020-06-30 15:02:16 +01:00
Matt Westcott ccbbe8b8ee Release note for #6183 in 2.10 2020-06-30 14:25:30 +01:00
Andy Babic 58741d3989 Update Page.objects.specific() to warn instead of erroring when pages of the specific type cannot be found (#5928) 2020-06-30 14:23:25 +01:00
Matt Westcott 4ee07d8073 Fill in release date for 2.9.1 2020-06-30 11:53:42 +01:00
Matt Westcott 98301fe736 Release note for #6183 in 2.9.1 2020-06-30 11:49:55 +01:00
Seb b9347ee970 Add ability to extend EditHandler without a children attribute
- Only run checks on children for tabs that use BaseCompositeEditHandler (have children)
2020-06-30 07:08:03 +10:00