0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
Commit Graph

9318 Commits

Author SHA1 Message Date
Matt Westcott
6358d84fa9 Test against Python 3.8 dev build 2019-08-06 14:25:00 +01:00
Matt Westcott
e65c11a35e Use xenial for all travis builds 2019-08-06 14:25:00 +01:00
John Carter
3bb2ab85fd Resolve DeprecationWarning (#5485)
Resolves "DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working" - see #5484
2019-08-06 10:49:45 +01:00
Martey Dodoo
bb4e2fe2df Add labels to snippet bulk edit checkboxes for screen reader users. Fix #5328 (#5463) 2019-08-05 18:12:08 +01:00
Matt Westcott
6bc94ee56d Fill in release date for 2.6.1 2019-08-05 15:18:38 +01:00
Thibaud Colas
3710d1d6b2
Clarify CHANGELOG instructions in "Committing code" docs (#5483) 2019-08-05 13:35:29 +01:00
Jonny Scholes
c0af26b076 Move and refactor upgrade notification JS 2019-08-04 17:39:55 +10:00
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 #5477 2019-08-01 18:23:17 +01:00
mien
4a343a5523
Add support for phone links in rich text
This is mainly copy paste of Liam Brenner work (#3776) but with
a few fixes to make it work with Draftail. Since mailto:-links
is supported i think it is reasonable to support tel:-links as
well
2019-08-01 16:12:22 +02:00
Iman Syed
d3f720995a Make image fallback work for images with big/small aspect ratios. Fix #5472 (#5474) 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 #5309
Fix jcrop holder image having no alt tag. Fix part of #5309
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 #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: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 #5455 (#5462)
* 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 (#5440) 2019-07-26 13:42:01 -04:00
Rodrigo
1a2bf525f2 Add https support for scribd oembed provider (#739)
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 #5431 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 #4925
2019-07-21 17:40:26 +10:00
Thibaud Colas
f207b1c11f
Pin Squash docker image to a specific version (#5441)
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 #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