Wykres commitów

10404 Commity (23bec4345b0428246e1222c540a90c29aa6c2aac)

Autor SHA1 Wiadomość Data
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
Matt Westcott 8542f5fe9c Fix underline lengths to prevent Sphinx warnings 2020-08-07 17:23:42 +01:00
jacobtoppm c654f0d71a Fix bulletpoint formatting, and update outdated information, particularly around available page statuses and the headings on the workflow edit view 2020-08-07 17:10:27 +01:00
jacobtoppm 5d8caaf096 Update editor manual images where they show the old edit/workflow admin views before revamp 2020-08-07 17:10:26 +01:00
jacobtoppm e85f16b500 Add a use case example for WAGTAIL_WORKFLOW_CANCEL_ON_PUBLISH=False 2020-08-07 17:10:24 +01:00
jacobtoppm b10b24a7b6 Update descriptions of the editing interface and workflow management for consistency. Note that screenshots are not yet updated 2020-08-07 17:10:23 +01:00
Matt Westcott 95c0a29aaf Rebuild wagtailadmin strings to include 'By Workflow' (#6303) 2020-08-07 16:13:04 +01:00
Martin Sandström 2a591fae89
Add missing translation for workflow (#6303) 2020-08-07 16:02:20 +01:00
Karl Hobley de6d14a667 Release notes for #6267 and #6268 2020-08-07 15:51:09 +01:00
Karl Hobley 9ad14ea439
Add hooks for snippet listing buttons 2020-08-07 15:47:27 +01:00
Karl Hobley a6b13ee559 Remove unnecessary caching of image operations 2020-08-07 15:47:04 +01:00
Karl Hobley 9b02147d3e Add hooks.register_temporarily for testing hooks
There's currently a number of places where we test hooks by registering
hook functions from test methods. These are never cleaned up so that
hook remains registered in future tests. This can cause issues with
tests not working consistently when you run a subset of the tests.

This adds a `register_temporarily` function to the hooks module. This
function can be used either as a decorator or a context manager. It'll
always remove the hook after the decorated function or with block exits,
even if it exits through an exception.
2020-08-07 15:47:04 +01:00
Matt Westcott ba16b4125d Release note for Django 3.1 support 2020-08-06 11:26:39 +01:00
Matt Westcott f804eba423 Formalise Django 3.1 support
Conflicts:
	wagtail/project_template/requirements.txt
2020-08-06 11:26:26 +01:00
Matt Westcott ec8e830b78 Test against Django 3.1 final and django-rest-framework 3.11.1 2020-08-06 11:25:47 +01:00
Matt Westcott 034fd466d3 Move page reorder view to wagtail.admin.views.pages.ordering 2020-08-06 11:24:07 +01:00
Matt Westcott 5a7e089510 Move page unpublish view to wagtail.admin.views.pages.unpublish 2020-08-06 11:24:07 +01:00
Matt Westcott 9b9310133c Move page delete view to wagtail.admin.views.pages.delete 2020-08-06 11:24:07 +01:00
Matt Westcott 085f38f457 Move page content type usage view to wagtail.admin.views.pages.usage 2020-08-06 11:24:07 +01:00
Matt Westcott 54c6bf8998 Move page history views to wagtail.admin.views.pages.history 2020-08-06 11:24:07 +01:00
Matt Westcott 92dcb957ee Move page revision views to wagtail.admin.views.pages.revisions 2020-08-06 11:24:07 +01:00
Matt Westcott 16dee057c6 Move preview_for_moderation / preview_revision_for_task into moderation / workflow submodules 2020-08-06 11:24:07 +01:00
Matt Westcott ceb6c30997 Move page workflow views to wagtail.admin.views.pages.workflow 2020-08-06 11:24:07 +01:00
Matt Westcott 30405f45e9 Move legacy page moderation views to wagtail.admin.views.pages.moderation 2020-08-06 11:24:07 +01:00
Matt Westcott b2a943d9f6 Move page lock/unlock views to wagtail.admin.views.pages.lock 2020-08-06 11:24:07 +01:00
Matt Westcott 73e6b3cb99 Move page search view to wagtail.admin.views.pages.search 2020-08-06 11:24:07 +01:00
Matt Westcott 666d581119 Move copy page view to wagtail.admin.views.pages.copy 2020-08-06 11:24:07 +01:00
Matt Westcott 3ba915c1c9 Move move-page views to wagtail.admin.views.pages.move 2020-08-06 11:24:07 +01:00
Matt Westcott 1a59a4450b Move page preview views to wagtail.admin.views.pages.preview 2020-08-06 11:24:07 +01:00
Matt Westcott c4bfd6ed84 Move page edit view to wagtail.admin.views.pages.edit 2020-08-06 11:24:07 +01:00
Matt Westcott aa9c9d9517 Move page create view to wagtail.admin.views.pages.create 2020-08-06 11:24:07 +01:00
Matt Westcott f87d83d4e2 Move page listing view to wagtail.admin.views.pages.listing 2020-08-06 11:24:07 +01:00
Matt Westcott 60930a01d9 Move wagtail.admin.views.pages into a subfolder 2020-08-06 11:24:07 +01:00
Matt Westcott dc2b4a5877 Add release note about populating form builder clean_name
Ref: #6093
2020-08-04 17:59:35 +01:00
Karl Hobley cb4f98b5f1 Release note for #6290 2020-08-04 16:03:15 +01:00
Karl Hobley 10c8d66423
Fix WAGTAILFRONTENDCACHE_LANGUAGES (#6290) 2020-08-04 15:53:23 +01:00
dependabot[bot] c9375ddf01 Bump elliptic from 6.4.0 to 6.5.3
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.4.0 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.4.0...v6.5.3)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-04 14:21:40 +01:00
Matt Westcott 5fe3002e76 Cache the SVG icon HTML fragment
The `{% icons %}` tag runs on every admin page render, and without caching, this will perform a template fetch for every .svg file - which is exceptionally slow on environments with shared filesystems (e.g. Vagrant). Adding this cache reduces the runtime of `wagtail.admin.tests.pages.test_create_page` from 89 to 57 seconds.
2020-08-03 19:42:47 +01:00
Matt Westcott f1d7c7d208 Rebuild translation strings 2020-08-03 18:09:37 +01:00
Matt Westcott 789de0540f Fix misapplied format strings inside gettext
Strings inside `gettext` / `_(...)` need to be literals to be picked up by the translation framework, so format parameters should be outside the function - `_("Hello %s") % name` not `_("Hello %s" % name)`.
2020-08-03 17:30:00 +01:00
Kalob Taulien d2e196b0c5
Add wagtail --version 2020-08-03 07:21:48 -06:00
Kalob Taulien f3a20e0488
Add wagtail --version 2020-08-03 07:20:43 -06:00
Kalob Taulien 5efedf5db7
Wagtail Version Command
Merge pull request #6284 from KalobTaulien/wagtail-commands
2020-08-03 07:16:58 -06:00
Loic Teixeira b7cae45fd7 Fix Python 3.9 Deprecation Warning
> DeprecationWarning: Using or importing the ABCs from 'collections'
> instead of from 'collections.abc' is deprecated since Python 3.3,
> and in 3.9 it will stop working
2020-08-03 13:23:21 +01:00
Matt Westcott c70d1f5c5a Fix appconf for wagtail.tests.modeladmintest
WagtailTestsAppConfig had an incorrect label, but this didn't matter because it wasn't being specified in the app's __init__.py. However, Django 3.2 autodetects appconfs in apps.py, which causes the error to surface.
2020-08-03 13:20:06 +01:00
Kalob Taulien 4ad4a33bfb
Use --version rather than plain version 2020-08-02 11:11:44 -06:00
Kalob Taulien 7c597051ab
Type fix & proper command name 2020-08-01 16:57:13 -06:00
Kalob Taulien e267ca9172 Version command 2020-08-01 15:08:00 -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