Wykres commitów

10321 Commity (60930a01d92c26f110f29bd9cf598493cb9ae1f0)

Autor SHA1 Wiadomość Data
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
Alex Tomkins f1246c726e Change more instances of ugettext to gettext 2020-08-01 17:45:40 +01:00
Matt Westcott 95ca4e33c7 Fetch new translations from Transifex 2020-07-31 19:06:33 +01:00
Matt Westcott 6d24af682d Move SpreadsheetExportMixin to wagtail.admin.views.mixins
Fixes #6265. The new django-filter code in wagtail.admin.views.reports is not compatible with loading that module before models have been loaded; this broke the recipe at https://docs.wagtail.io/en/stable/reference/contrib/forms/customisation.html#customise-form-submissions-listing-in-wagtail-admin , as it involved loading wagtail.contrib.forms.views at model loading time, and that was importing SpreadsheetExportMixin from wagtail.admin.views.reports. Moving this out of wagtail.admin.views.reports breaks the deadlock.
2020-07-31 18:25:32 +01:00
Matt Westcott 36ad953658 Use search_type='raw' on Django 3.1 2020-07-31 15:41:47 +01:00
Matt Westcott 4879583fac Fix test to handle different script tag format in Django 3.1 2020-07-31 15:41:47 +01:00
Matt Westcott 98682412dc Use new-style URL paths for password reset views
This matches what Django has done in the corresponding views:
5d4b9c1cab/django/contrib/auth/urls.py
and prevents it from breaking on Django 3.1 (because the token is now longer than the 13+20 chars allowed by the original regexp).
2020-07-31 15:41:47 +01:00
Matt Westcott 12a35c79b4 Fix permission checkboxes for Django 3.1 2020-07-31 15:41:47 +01:00
Matt Westcott 884b055289 Update tox/travis config to test against Django 3.1 stable branch 2020-07-31 15:41:47 +01:00
Karl Hobley 4bf28b502c Fix docs for `construct_page_listing_buttons` 2020-07-31 11:14:48 +01:00
jacobtoppm faa57ce0af Remove 'and publish' from final workflow step approve button if using a nonlinear workflow mode where approval might not actually publish the page 2020-07-31 11:10:01 +01:00
jacobtoppm f915a69a93 Compare StreamField blocks by serialised value when checking has_changed for a form, preventing form.has_changed from always returning True for pages with StreamFields 2020-07-31 11:10:01 +01:00
Karl Hobley f3f932d2e5
Add before_{create,edit,delete}_snippet hooks 2020-07-30 08:08:40 +01:00
Karl Hobley 873160dd9a
Fix test name typo 2020-07-29 17:44:09 +01:00
Dan Braghis d74be82319 Add Draftail button hover border 2020-07-28 17:18:50 +01:00
Dan Braghis d9b692a2e8 Add missing richtext features SVG icons 2020-07-28 17:18:50 +01:00
Matt Westcott e0dc53d9ad Remove versionadded/versionchanged notes for 2.9 2020-07-28 12:53:22 +01:00
Matt Westcott 545a05338e Rotate deprecation warnings 2020-07-28 12:53:22 +01:00
Matt Westcott 48dee654b4 Move SiteMiddleware to wagtail.contrib.legacy 2020-07-28 12:53:22 +01:00
Matt Westcott 7451500054 Add release note sections for 2.11 2020-07-28 12:53:22 +01:00
Matt Westcott cc83f956e6 Version bump to start work on 2.11 2020-07-28 12:53:22 +01:00
Chris Contolini 4231d9ef11
Fix minor typo in TableBlock docs (#6259)
Also a small grammatical fix.
2020-07-28 07:14:05 -04:00
Matt Westcott b6455ecfb9 Fetch new translations 2020-07-27 11:10:50 +01:00
Matt Westcott e25ee3da89 Generate new strings for translation 2020-07-24 18:09:12 +01:00
Matt Westcott b1adc6b042 Fix translation string formatting in redirect import views 2020-07-24 18:09:12 +01:00
Matt Westcott a23551b890 Fetch new translations from Transifex 2020-07-24 18:09:12 +01:00
Matt Westcott 622d439e6d Release note for workflow 2020-07-24 17:11:08 +01:00
Matt Westcott 33e4c0ec7b Change 'Page history' link to 'History' to reduce clutter 2020-07-24 16:59:33 +01:00
Matt Westcott eb5b17c281 Remove final vestiges of clipboard-list being part of the icon font 2020-07-24 16:59:33 +01:00
Matt Westcott c263d82e39 Refactor workflow action button JS so that the form submission goes through the edit view 2020-07-24 16:59:33 +01:00
Matt Westcott 0634394c2e Handle workflow actions within the page edit view 2020-07-24 16:59:33 +01:00
Matt Westcott d3f7ffa369 Add a variant of WorkflowAction that just collects, validates and returns form data so that the action can be performed separately 2020-07-24 16:59:33 +01:00
Matt Westcott 336f5a75c5 move modal form rendering into its own helper method 2020-07-24 16:59:33 +01:00
Matt Westcott 2ec9886cb1 Split WorkflowAction into GET and POST cases 2020-07-24 16:59:33 +01:00