Matt Westcott
1b6575fbfa
Deprecate the use of Filter as an ORM model
...
Warnings are thrown on calling save() and accessing Filter.objects
2016-12-06 15:03:15 +00:00
Matt Westcott
978cd2e95b
Switch to Rendition.filter_spec as the active field for looking up filters
2016-12-06 15:03:15 +00:00
Matt Westcott
cae51db1fc
Perform a deep copy when cloning global Elasticsearch settings ( #3201 )
...
Fixes test failures triggered by #3036 on some combinations of Python and ES versions. These occurred because we were performing deep_update on a shallow copy of the global settings, which meant that if any dicts were merged at a level below the top level, the global settings would be mutated (causing the instance-specific settings to leak into other instances).
2016-12-06 14:59:16 +00:00
Craig Loftus
8c4644f4ca
wagtailapi.serializers.PageSerializer was calling super(BaseSerializer)
...
This issue was found via lgtm.com/projects/g/torchbox/wagtail/
2016-12-05 21:34:24 +00:00
Matt Westcott
f2fcfe54a2
Release note for #3193
2016-12-05 19:23:29 +00:00
Matt Westcott
e953cb36dc
Limit the explorer breadcrumb to the pages the user has explore permission over
...
Refactor of #3133
2016-12-05 19:04:19 +00:00
Matt Westcott
2a76a30e7b
Convert breadcrumb.html include into a custom tag
2016-12-05 19:04:18 +00:00
Matt Westcott
44508fd7bb
Split breadcrumb template into chooser/explorer versions instead of 'choosing' flag
2016-12-05 19:04:18 +00:00
Matt Westcott
ff44666c36
Add note that wagtailforms is not a replacement for Django forms ( #3190 )
2016-12-05 18:19:59 +00:00
Rob Moorman
f7042492df
Update boto3 version to 1.4.x to support latest features of third-pary modules (wagtail-alt-generator) ( #3194 )
2016-12-05 18:19:15 +00:00
Matt Westcott
f54498b3b0
Clarify '# ...' comments when omitting code in tutorial snippets
...
See https://groups.google.com/d/msg/wagtail/NFFqKY98jiY/XZjmk3-mBAAJ
2016-12-01 13:43:19 +00:00
Karl Hobley
cc299d8873
Added example to #3036 upgrade consideration
2016-12-01 12:04:14 +00:00
pyMan
7d1114c1a1
Extra ES params passed through new OPTIONS key
...
Closes #2778
Extra ES params are now passed through new OPTIONS key in the
WAGTAILSEARCH_BACKENDS setting.
It's backward compatible: if no OPTIONS key is found and some parameters
still exist, those parameters are used for the ES constructor..
2016-12-01 12:04:14 +00:00
Matt Westcott
11676408c9
remove Fix: prefix
2016-11-30 18:46:22 +00:00
Chris Rogers
89e985d02a
added convenience method in_site and tests
2016-11-30 18:45:14 +00:00
Edd Baldry
cb268c233a
Disable editing when page lock turned on
2016-11-30 17:16:47 +00:00
Matt Westcott
6fda0dc01f
Release note for #3139
2016-11-30 17:00:30 +00:00
Nick Smith
f6558de4fa
Hide privacy switch on root page
2016-11-30 16:45:09 +00:00
Nick Smith
bfa0341e05
Add .show attr to Button; False when dropdown is empty
...
Fixes #3138
2016-11-30 16:45:09 +00:00
Nick Smith
46570c9884
Don't show revisions menu button on root page
2016-11-30 16:45:09 +00:00
Matt Westcott
3fd5bb1820
Add image gallery / InlinePanel section to tutorial
2016-11-30 16:38:20 +00:00
Matt Westcott
5df8f1e34e
Release note for #3145
2016-11-30 16:35:21 +00:00
Karl Hobley
a1ae5950f4
Install certifi when testing against Elasticsearch 5
...
Required by elasticsearch-py but needs to be installed separately
8314f7b25c
2016-11-30 16:31:21 +00:00
Karl Hobley
5007165f29
Install JDK8 on Travis for Elasticsearch 5
2016-11-30 16:31:20 +00:00
Karl Hobley
6be679e19f
Set vm.max_map_count to 262144
2016-11-30 16:31:20 +00:00
Karl Hobley
35c850d8ec
Update URLs in install_elasticsearch5.sh
2016-11-30 16:31:20 +00:00
Karl Hobley
308844e5e8
Cut down the amount of Elasticsearch travis builds
2016-11-30 16:31:20 +00:00
Karl Hobley
18316d627d
Added Elasticsearch 5 to search backend docs
2016-11-30 16:31:20 +00:00
Karl Hobley
752fbca24a
Add Elasticsearch 5 to Travis/tox
2016-11-30 16:31:20 +00:00
Karl Hobley
c2e944fb3b
Implement empty Elasticsearch5Index class
...
Just so we have the complete set of classes in this backend
2016-11-30 16:31:19 +00:00
Karl Hobley
60c9d7c26c
Switch query combinators to use "bool" queries
2016-11-30 16:31:19 +00:00
Karl Hobley
4467bed69b
Replace "not missing" query with "exists"
...
This applies to all backends as the "exists" query has always existed.
The results should be the same.
https://www.elastic.co/guide/en/elasticsearch/reference/2.1/query-dsl-exists-query.html
2016-11-30 16:31:19 +00:00
Karl Hobley
906201d5ae
Rename "fields" search parameter to "stored_fields"
...
https://www.elastic.co/guide/en/elasticsearch/reference/5.x/breaking_50_search_changes.html#_literal_fields_literal_parameter
2016-11-30 16:31:19 +00:00
Karl Hobley
736138ae0e
Don't set "index: not_analyzed" on filter fields in ES5
...
We now convey this information to Elasticsearch through the type. Only
the "text" type is analyzed and any string fields that we don't want to
be analyzed can now use the "keyword" type.
2016-11-30 16:31:19 +00:00
Karl Hobley
abb993f901
Change value of "store" property to a boolean
...
This affects all search backends as it always should've been a boolean.
Older versions of Elasticsearch coerced it to a boolean but ES5 doesn't
appear to do this anymore.
2016-11-30 16:31:19 +00:00
Karl Hobley
a5e7fbbb0f
Switch string type for text/keyword
...
Using "text" type in search fields and "keyword" type in filter fields
https://www.elastic.co/guide/en/elasticsearch/reference/5.x/breaking_50_mapping_changes.html#_literal_string_literal_fields_replaced_by_literal_text_literal_literal_keyword_literal_fields
https://www.elastic.co/guide/en/elasticsearch/reference/5.x/text.html
https://www.elastic.co/guide/en/elasticsearch/reference/5.x/keyword.html
2016-11-30 16:31:19 +00:00
Karl Hobley
93cc470d4b
Added Elasticsearch 5 backend tests
2016-11-30 16:31:19 +00:00
Karl Hobley
f07b032881
Added Elasticsearch 5 backend
2016-11-30 16:31:18 +00:00
Matt Westcott
960c2b9341
Use Sean Hoefler's full name in CONTRIBUTORS.rst
2016-11-30 11:00:52 +00:00
Diederik van der Boor
f960753d74
Add the alters_data
attribute on Page.copy()
.
...
This makes sure the variable can't be printed in the template,
performing an accidental copy of the page. That also happened when using
the `{% print %}` tag from my django-debugtools package
2016-11-29 11:39:37 +00:00
Karl Hobley
ba4119bd26
Update check_view_restrictions hook to use new accept_request method
2016-11-29 11:24:35 +00:00
Karl Hobley
ecd585abd1
Added accept_request method to PageViewRestriction
...
This allows custom code to check whether a PageViewRestriction will pass
a request or not without needing to depend on any implementation
details.
2016-11-29 11:24:35 +00:00
shoefler
7994d19f65
Set array arguments to None
2016-11-29 10:30:22 +00:00
Scot Hacker
2882775842
Add BlockQuoteBlock to core block types
2016-11-29 10:13:10 +00:00
Morgan Aubert
4e23e46159
Fix #3167 - Ensure TableBlock content is indexed
...
Changes include:
* adding the 'get_searchable_content' method on the TableBlock
* ... and the related test
2016-11-28 20:40:47 +00:00
Matt Westcott
3d37f84311
Release note for #2812
2016-11-28 17:45:17 +00:00
Mikalai Radchuk
55bdae573b
Add support of callable choices for ChoiceBlock
...
Fixes #2809
2016-11-28 17:44:35 +00:00
Matt Westcott
02360e6651
re-indent template performance code snippet
2016-11-28 13:45:42 +00:00
Tim Heap
16213db0f8
Remove old versionadded notes
...
A step has been added to the release process notes to do this for future
releases as well.
https://github.com/torchbox/wagtail/wiki/Creating-a-new-Wagtail-release
2016-11-28 13:41:35 +00:00
Tim Heap
6ba34636cb
Fix whitespace errors in docs
...
Trimmed trailing whitespace, convert tabs to 4 spaces, add preference
for spaces to `.editorconfig`.
2016-11-28 13:41:35 +00:00