Commit graph

9239 commits

Author SHA1 Message Date
Matt Westcott
3929031e10 Add release notes for 2.5.2 2019-07-30 14:08:26 +01:00
Thibaud Colas
1108eb4c6e Delay dirty form check data snapshot to avoid race conditions. Fix #4978 (#5469)
User interaction with the form within the 10s delay also won’t trigger the confirmation message. There will still be race condition issues if form widgets like rich text take 10+ seconds to initialise – but that doesn’t seem likely.
2019-07-30 12:46:14 +01:00
Karl Hobley
f97d5c0393 Pass down process_child_object when copying recursively 2019-07-30 11:51:02 +01:00
Matt Westcott
3022231205 Fix broken pipenv/docutils dependency on CircleCI 2019-07-23 17:26:53 +01:00
Tom Dyson
dff687023e Fix update docs typo
Only two Ss in accessor. Also make quotes consistent.
2019-07-09 17:50:50 +01:00
Matt Westcott
82f22c4c1f Version bump to 2.6rc1 2019-07-09 14:39:15 +01:00
Matt Westcott
9627ef93cb Generate new strings for translation 2019-07-09 14:28:37 +01:00
Matt Westcott
d6239bd5dd Fetch new translations from Transifex 2019-07-09 14:25:52 +01:00
Fidel Ramos
baee103024 Optimize admin.navigation.get_explorable_root_page
Testing the queryset in the if clause was causing the whole queryset
to be retrieved and populated from DB, all to check whether it was empty
or not.

The optimization is to rely on the strict behavior of
first_common_ancestor, which raises an exception if the queryset is
empty.
2019-07-09 11:57:40 +01:00
Andrew Miller
b9816d194a Don't make assumptions about the username field
The USERNAME_FIELD exists to allow customisation. Therefore we should make an assumption that `.username` exists on the model. Instead, we need to pull the required value from the USERNAME_FIELD and add in a fallback default.
2019-07-08 20:11:14 +01:00
William Blackie
3754d34caa Search query normalisation no longer removes punctuation #5416 2019-07-04 16:53:27 +01:00
Michael Hearn
10bbfec93c Also add change event to timepicker and datepicker 2019-07-03 16:10:41 +01:00
Michael Hearn
723ce74ca0 Datetime picker dispatches 'change' event 2019-07-03 16:10:33 +01:00
Jonny
851bd5f24d Added missing is_stored_locally() to AbstractDocument 2019-07-03 15:53:51 +01:00
Matt Westcott
7a47bfc9a7 Document the workaround for broken wagtailimages.Filter references in custom image migrations 2019-07-03 12:10:04 +01:00
Karl Hobley
c875df67a2 Nightly: Add script for testing nightly builds 2019-07-02 11:32:59 +01:00
Karl Hobley
191a47e4bc
Nightly: Keep latest.json public when updating 2019-07-02 11:25:38 +01:00
Karl Hobley
0c65936c9a
Nightly: Upload builds to 'dist' subfolder 2019-07-02 11:20:59 +01:00
Karl Hobley
93f032b261
Nightly: Upload builds to 'dist' subfolder 2019-07-02 11:20:21 +01:00
Jaroslaw Zabiello
7df817d29c Update third_party_tutorials.rst
Add a detailed article about using GraphQL in Wagtail
2019-06-25 16:07:06 +01:00
Tom Dyson
ff850026e8 Adjust link label 2019-06-25 12:10:34 +01:00
Tom Dyson
08a301b3ce Clarify new three month release policy 2019-06-25 12:10:34 +01:00
jordan_bauer
0dac8f0764 added construction_hook_name to settings_menu (#5384) 2019-06-25 12:04:53 +01:00
Mikalai Radchuk
9291f95b7e
Update CONTRIBUTORS.rst 2019-06-24 14:05:48 +01:00
Helen Chapman
3bd058f9d8 Rename _utilities.hidden.legacy.scss to _utilities.visuallyhidden.scss (#5404)
We will always need visuallyhidden styles for screen readers.
2019-06-24 12:45:02 +01:00
Helen Chapman
6ec4ae0c32 Add screen-reader labels across multiple parts of the UI (#5274, #5339, #5372) 2019-06-21 16:29:00 +01:00
Karl Hobley
4f1a9d1bfd Try pip install --user 2019-06-21 11:31:04 +01:00
Karl Hobley
229c845481
Added CI config to generate nightly builds from master (#5320)
* Added CI config to generate nightly builds from master

* Fix typo

* Don't write __init__.py directly

We need to import the original in the script

* Update wagtail.utils.version

This is based off a copy from Django master made just now and adds
support for 'dev' versions.
2019-06-21 11:13:34 +01:00
Helen Chapman
1e85ff454c Move focus to the pages explorer menu when open (#5336, #5394)
* Ensure that when you open the explorer the focus moves to the first link of the menu, and add a label for the explorer navigation
* Add dialog role to pages explorer popup, and ensure that there is an option to close the dialog window when tabbing by making the close button visually hidden rather than display none
2019-06-20 18:02:28 +01:00
Helen Chapman
28cdf9c212 Improve screen-reader labels for action links in page listing (#5274, #5380) 2019-06-20 17:33:18 +01:00
Andy Babic
af415c7d19 Release notes for #5203 2019-06-20 16:33:09 +01:00
Andy Babic
4f762dc1ac Tests for #5203 2019-06-20 16:25:07 +01:00
Karl Hobley
d008cc7e21 Implement Page.with_content_json and add to docs (fixes #5199) 2019-06-20 16:24:04 +01:00
Andy Babic
11af8123f7 Release notes for #5183 2019-06-20 16:06:59 +01:00
Andy Babic
8034d00e78 Add tests for Page.copy() process_child_object and exclude_fields 2019-06-20 15:53:55 +01:00
Andy Babic
78425725c9 Provide the original and copied pages to process_child_object() 2019-06-20 15:51:02 +01:00
Karl Hobley
593d58c1bb Add "exclude_fields" parameter to Page.copy
Also, make the excluded fields take effect on child relations as well
2019-06-20 15:51:02 +01:00
Karl Hobley
9ff6b0d499 Add process_child_object method to Page.copy 2019-06-20 15:51:02 +01:00
Thibaud Colas
e2f14057a4
Add dedicated accessibility section to v2.6 release notes (#5402) 2019-06-19 17:31:20 +01:00
Helen Chapman
e33732cc63 Add more contextual information for screen readers in the explorer menu’s links (#5335, #5386) 2019-06-19 15:19:41 +01:00
Jonny Scholes
4ef9919240 Refactor submenu JS to remove jquery dep and move to wagtail-client (#5254) 2019-06-19 12:30:39 +01:00
Thibaud Colas
722321c3ff
Re-add loading of Wagtail icon font for userbar. Fix #5397 (#5398) 2019-06-19 10:04:52 +01:00
Fidel Ramos
41f80af5db Optimization of UserPagePermissionsProxy.revisions_for_moderation (#5311)
revisions_for_moderation() was iterating over Page instances only
to use their path attribute. The optimization uses values_list()
over the GroupPagePermission queryset to retrieve only the page
paths without having to create the model instances in memory. This
saves roughly 50% of the runtime.
2019-06-18 20:14:54 +01:00
Helen Chapman
4a1f26778f Add labels to permission checkboxes for screen reader users (#5329, #5395)
- adds a fieldset around checkboxes with the same name
- add correct labels for object permissions table
- Ensure that image and document permissions labels display correctly, and ensure that labels for the dropdowns for document and image collections are not display:none
- Hide labels from sighted users in group edit / group add pages
2019-06-18 18:23:36 +01:00
John Carter
17e541715a Fix spelling (#5393) 2019-06-18 17:48:10 +01:00
Coen van der Kamp
3eb71d702e
Merge pull request #5378 from thibaudcolas/bug/icon-help-inverse-5359
Fix help-inverse icon regression introduced by icon refactorings in #5359
2019-06-18 14:06:01 +02:00
jordan-bauer
998440cfa9 Remove buggy tab order customisations in CMS admin (#5383, #5351) 2019-06-18 12:49:16 +01:00
Andy Babic
73e07ba10d
Fix elasticsearch search backend tests broken by #5208 2019-06-17 22:17:59 +01:00
Helen Chapman
98d3ef4743 Ensure the 'add child page' button displays when focused (#5274, #5382) 2019-06-17 18:11:04 +01:00
Helen Chapman
4b4db7d771 Adds screen-reader-only text to the close button for modals (#5274, #5377)
* Adds clearer text to the close button for modals
* Use existing wagtailConfig.STRINGS to store the new translatable string for JS, rather than introducing a new library.
* Update list of string constants for translation in the tests file
* Remove aria-hidden on modal dialog close button
2019-06-17 15:56:48 +01:00