Matt Westcott
a8c7ce6c33
Fix tag indexing tests that were being skipped
...
Tests were being skipped if the search backend did not exactly match wagtail.search.backends.elasticsearch, which was only elasticsearch version 1. Fixing this exposed the refresh_index bug fixed in #5845 , and a secondary bug in document editing: uploading a new document file skipped saving tags.
2020-03-04 11:27:02 +00:00
Lars van de Kerkhof
deda5e7b17
get_indexed_models is a function, lets call it and loop through the results.
...
Most likely nobody has ever called refresh_index, because I just tried it and found this bug.
2020-03-04 10:23:56 +00:00
Storm Heg
08ef3f4840
Allow url punctuation as defined in RFC 3986 section 2.3
2020-03-03 17:38:07 +00:00
stevelyall
babcbb7f80
Add Vidyard to oEmbed provider whitelist
2020-03-03 17:06:05 +00:00
Casper
19f50c72ce
Hide preview button when preview_modes is empty
2020-03-03 16:20:23 +00:00
Tom Dyson
92ba2c4832
Replace welcome page for Squash instances
2020-03-03 15:20:47 +00:00
Matt Westcott
122575d2ee
Release note for #5848
2020-02-26 14:11:17 +00:00
Matt Westcott
09a2ccf8cc
Documentation for custom tag models
2020-02-26 14:10:21 +00:00
Matt Westcott
163efe3753
Configure WagtailAdminModelForm to use TagField as standard for tag fields
2020-02-26 14:10:21 +00:00
Matt Westcott
c470b33d44
Support setting a free_tagging flag on tag models to be picked up by TagField / AdminTagWidget
2020-02-26 14:10:21 +00:00
Matt Westcott
702a4b438f
Implement TagField to apply tag whitelisting
2020-02-26 14:10:20 +00:00
Matt Westcott
3957674fc2
Add option to AdminTagWidget to disable free tagging
...
Also refactor JS initialiser to pass options as a dict, so we don't have an impenetrable list of booleans
2020-02-26 14:10:20 +00:00
Karl Hobley
d48d3dfc5b
Fix documents tests on Windows ( #5752 )
...
As documents are streamed, the files are not closed until the datastream
has been fully consumed by the test. But most of the documents tests
never do this.
On Windows, files must be closed before deleting them. This change makes
the tests always consume the file so that they are closed before
deleting them.
2020-02-25 23:21:32 +00:00
Maylon Pedroso
78cc81c505
Set context variable to None if no image provided to image templatetag
2020-02-25 23:16:52 +00:00
Po-Chuan Hsieh
f52d3d89d1
Relax pillow version restriction ( #5829 )
...
It allows to build with Pillow 7.x.
2020-02-25 23:10:17 +00:00
dt
a6fb0762a8
Mention options for schema in sitemap
...
Add clear way to change schema in `sitemap.xml` to https on `sitemap`
documentation page
2020-02-25 21:33:21 +00:00
Karl Hobley
7e8f8f893c
Add changelog entry for removing Django 1.11 support
2020-02-24 12:26:48 +00:00
Matt Westcott
8931312025
Release note for #5827
2020-02-21 17:29:07 +00:00
Storm Heg
738572a545
Optimise configure site warning conditional
2020-02-21 16:56:40 +00:00
Storm Heg
50f6b21a78
Fix regression where Page.get_site() was not not working
2020-02-21 16:56:39 +00:00
Storm Heg
b13d8dc6c8
Fix get_urls_parts: return None if wagtail_serve is not registered
2020-02-21 16:56:39 +00:00
Matt Westcott
4df455ea9f
Remove support for Django 2.1 ( #5840 )
2020-02-18 13:55:53 +00:00
Matt Westcott
a97256a4f7
Release note for #5837
2020-02-18 11:45:53 +00:00
Matt Westcott
9f8cddca73
Respect custom tag models in WagtailAdminModelForm formfield_for_dbfield logic
2020-02-18 00:37:58 +00:00
Matt Westcott
0099de92f6
Allow passing a tag model to AdminTagWidget
2020-02-18 00:12:49 +00:00
Matt Westcott
5d8b343528
Add autocomplete endpoint for custom tag models
2020-02-18 00:12:49 +00:00
Matt Westcott
51d8433b6b
Release note for #5787
2020-02-17 12:30:10 +00:00
Matt Westcott
96cd5c066d
Update wording
...
Also move warning so it occurs on server startup rather than first request
2020-02-17 12:06:19 +00:00
Matt Westcott
7b6a89c155
Upgrade consideration note re SiteMiddleware deprecation
2020-02-17 12:06:19 +00:00
Matt Westcott
4950158e46
Remove remaining references to request.site
2020-02-17 12:06:19 +00:00
Matt Westcott
76cd26b099
Remove remaining references to SiteMiddleware
2020-02-17 12:06:19 +00:00
Matt Westcott
4279a17e87
Remove unnecessary 'except AttributeError'
2020-02-17 12:06:19 +00:00
Matt Westcott
ad444584f5
Refactor get_base_url to avoid a redundant Site.find_for_request call
2020-02-17 12:06:19 +00:00
Matt Westcott
3b49381884
Fix and test wagtail_site tag
2020-02-17 12:06:18 +00:00
Matt Westcott
f34891fbd3
Update docs to cover wagtail_site tag, find_for_request and deprecation of SiteMiddleware
2020-02-17 12:06:18 +00:00
Matt Westcott
ac84d8743b
Revert SiteMiddleware to setting request.site
...
This way, SiteMiddleware continues to support existing user / third-party code that has not yet been migrated from request.site to Site.find_for_request
2020-02-17 12:06:18 +00:00
Matt Westcott
76b6a2a4d4
Set host headers properly in multi-site tests, rather than fiddling request._wagtail_site
2020-02-17 12:06:18 +00:00
Matt Westcott
5eec4d954e
Deprecate SiteMiddleware ( #3834 , #5332 , #5673 )
...
Squashed commit of the following:
commit 6ff78d0271ae9bb8be20edc77acc046b7ecd1190
Merge: cbb5575
b7872e3
Author: Matt Westcott <matt@west.co.tt>
Date: Fri Jan 24 10:41:00 2020 +0000
Merge branch 'master' into sitemiddleware-rebase-2
Conflicts:
docs/reference/settings.rst
wagtail/api/v2/endpoints.py
wagtail/api/v2/filters.py
wagtail/api/v2/serializers.py
commit cbb5575fd8
Author: timothy@bttrcode <timothy@bttrcode.nl>
Date: Sun Nov 3 02:30:00 2019 +0100
Update branch, resolve conflicts, clean up
commit 6188742cfe
Merge: 4b4dee6
1c1341e
Author: timothy@bttrcode <timothy@bttrcode.nl>
Date: Sun Nov 3 01:48:21 2019 +0100
Resolve merge conflicts
commit 4b4dee6c47
Author: timothy@bttrcode <timothy@bttrcode.nl>
Date: Sun Nov 3 01:42:37 2019 +0100
Temporarily add Pipfile and yarn file
commit 540dff380b
Merge: 4a93424
0d2442f
Author: timothy@bttrcode <timothy@bttrcode.nl>
Date: Fri Sep 27 20:22:00 2019 +0200
Merge branch 'master' of https://github.com/aritas1/wagtail into aritasmaster
commit 0d2442fc1f
Author: Daniel <mail@aritas.de>
Date: Wed Jun 26 03:01:44 2019 +0200
clean tests and add ALLOWED_HOSTS globally
commit b7e6b8e655
Author: Daniel <mail@aritas.de>
Date: Wed Jun 26 03:00:07 2019 +0200
change context processor to be lazy
commit b16250fce9
Author: Daniel <mail@aritas.de>
Date: Tue May 28 21:37:05 2019 +0200
update SiteMiddleware documentation
commit 4be243f64d
Author: Daniel <mail@aritas.de>
Date: Tue May 28 20:52:08 2019 +0200
fix linting
commit 33151817a0
Author: Daniel <mail@aritas.de>
Date: Tue May 28 19:11:47 2019 +0200
add wagtail_site template tag
commit 38b304105a
Author: Daniel <mail@aritas.de>
Date: Tue May 28 16:19:22 2019 +0200
update tests for deprecated SiteMiddleware
commit f745aae9d0
Author: Daniel <mail@aritas.de>
Date: Tue May 28 16:11:58 2019 +0200
change Site finding mechanism to be independent of deprecated SiteMiddleware
2020-02-17 12:06:18 +00:00
Thibaud Colas
264ae1f999
Add README badges for LGTM ( #5831 )
...
Based on our recent discussion in Slack. See #5821 for an example PR that uses the LGTM check.
2020-02-17 00:06:38 +00:00
Andy Babic
1c2719720d
Release notes for #5810
2020-02-16 21:43:36 +00:00
Storm Heg
9f5cd32e27
Show InlinePanel non field validation errors
2020-02-16 21:43:35 +00:00
Andy Babic
061f0e2571
Release notes for #5828
2020-02-16 21:18:11 +00:00
Samir Shah
dd4a04f843
Skip field validation when unpublishing pages.
2020-02-16 21:05:51 +00:00
Thibaud Colas
df89749d76
Remove empty line from comment block ( #5821 )
...
A very crucial change, so I can try our new LGTM integration.
2020-02-12 14:45:20 +00:00
Thibaud Colas
676503023d
Mention docker-wagtail-develop in developing docs ( #5820 )
...
Based on discussion in #bristol-sprint on Slack. See also https://github.com/wagtail/vagrant-wagtail-develop/pull/25 .
2020-02-12 14:11:40 +01:00
Matt Westcott
1f5761fc6c
Remove duplicate of Jérôme Lebleu from contributors
2020-02-11 12:26:38 +00:00
Matt Westcott
d192bd1d44
Version bump beautifulsoup to 4.8.x ( #5817 )
2020-02-11 11:02:08 +00:00
jacobtoppm
3ac230f821
Prevent 'status' banners for page locking being doubled up on POST requests ( #5818 )
2020-02-11 09:25:09 +00:00
Matt Westcott
4314f3d1a1
Implement MultipleChoiceBlock (rebase of #5592 ) ( #5819 )
...
* Implement MultipleChoiceBlock (squashed commits from #5592 )
* Omit widget from frozen kwargs
* Rename get_callable_choices to indicate it is an internal method
* Add release notes for MultipleChoiceBlock
2020-02-10 22:24:49 +00:00
Matt Westcott
2b797f4a2e
Fix version number to 2.9a0
2020-02-07 20:50:10 +00:00