Wykres commitów

9260 Commity (4a934246542cd5ad5364017381353a3329191c73)

Autor SHA1 Wiadomość Data
Neal Todd 4a93424654 Prevent exception when attempting to delete a model with a protected 1-to-1 relation
Modeladmin handles notification to the user if a model instance has protected ForeignKey
relationships. However, if the protected relation is a OneToOneField it raises an exception:

  File ".../wagtail/wagtail/contrib/modeladmin/views.py", line 742, in post
    for obj in qs.all():
AttributeError: 'MyRelatedModel' object has no attribute 'all'

because qs in this case is the related instance rather than a queryset of related instances
(as is the case for a ForeignKey).

This commit handles the OneToOneField case as well.
2019-08-04 17:20:41 +10:00
Matt Westcott cdb13b6490 Add release notes for 2.6.1 2019-08-02 17:34:20 +01:00
Matt Westcott 0514942521 Apply escaping to JS translation strings. Fixes 2019-08-01 18:23:17 +01:00
Iman Syed d3f720995a Make image fallback work for images with big/small aspect ratios. Fix () 2019-08-01 11:46:34 +01:00
Matt Westcott 29741f57af Fill in release date for 2.6 2019-08-01 10:47:07 +01:00
Matt Westcott 4767557217 Fill in release date for 2.5.2 2019-08-01 10:46:33 +01:00
Matt Westcott d651f9417c Fetch new translations from Transifex 2019-08-01 10:34:31 +01:00
Kalob Taulien a81484f642
Fix jcrop holder image having no alt tag. Fix part of
Fix jcrop holder image having no alt tag. Fix part of 
2019-07-31 09:13:59 -06:00
Matt Westcott d75754a19b Add release notes for 2.5.2 2019-07-30 14:08:52 +01:00
Thibaud Colas db9b582912 Delay dirty form check data snapshot to avoid race conditions. Fix ()
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:45:11 +01:00
Karl Hobley b818eeab5d Pass down process_child_object when copying recursively 2019-07-30 11:49:07 +01:00
Thibaud Colas 73f4047809 Fix jcrop holder image having no alt tag 2019-07-27 21:22:45 -04:00
Catherine Farman f53dd95696 Change StreamField group labels color so labels are visible. Fix ()
* use lighter grey for streamfield group label for accessible contrast
2019-07-26 16:39:11 -04:00
Cameron Lamb cc85d42fbd Fix the required styles on title fields () 2019-07-26 13:42:01 -04:00
Rodrigo 1a2bf525f2 Add https support for scribd oembed provider ()
Currently scribd defaults to https for their sharing links - http still works but if you copy&paste quickly you may think it's broken
2019-07-25 14:19:07 +01:00
Matt Westcott 1468cab3a1 Release note for 2019-07-25 10:46:41 +01:00
kevinhowbrook ace5c5f79a Fix docs title to break for long filenames 2019-07-25 10:46:24 +01:00
kevinhowbrook 04d6e4b32d Break long file titles on multi file upload listing 2019-07-25 10:40:03 +01:00
Matt Westcott 14dcb54a17 Fix broken pipenv/docutils dependency on CircleCI 2019-07-23 17:26:12 +01:00
Daniele Procida 72db52371a Updated feature detection notes 2019-07-21 18:03:09 +10:00
Michael van Tellingen 9cd2fc2c82 Add a `construct_page_listing_buttons` hook
This hook mimics the functiolity provided by `construct_page_action_menu`
in that it constructs the final list of buttons to be shown in the wagtail
admin interface.  This means that within this function button's can be
removed, added or re-ordered.

See 
2019-07-21 17:40:26 +10:00
Thibaud Colas f207b1c11f
Pin Squash docker image to a specific version ()
Recent builds have been breaking due to the following error: `/post_build.sh: line 2: npm: command not found`. I’m not entirely sure this is the fix, but it looks like this `latest` tag is now resolving to `3.7.4-buster` (https://hub.docker.com/_/python). Debian Buster got released 2 weeks ago. It feels safer to have a pinned dependency, and Stretch is probably what it was resolving to before.
2019-07-19 18:50:25 +01:00
Matt Westcott 268df8ceeb Rotate deprecation warnings for 2.7 2019-07-09 18:22:17 +01:00
Matt Westcott 13a7d403ad Remove features deprecated in 2.7 2019-07-09 18:22:17 +01:00
Tom Dyson 6d7a82cfb2 Fix update docs typo
Only two Ss in accessor. Also make quotes consistent.
2019-07-09 17:50:24 +01:00
Matt Westcott 772b76ef00 Add 2.7 section to changelog and release notes 2019-07-09 16:51:48 +01:00
Matt Westcott c2e07d735b Version bump to start work on 2.7 2019-07-09 16:46:16 +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 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 () 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 ()
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 (, , ) 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 ()
* 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 (, )
* 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