0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00
Commit Graph

7817 Commits

Author SHA1 Message Date
LB
70eb2b6ae3 add on_delete argument to ParentalKey & ForeignKey 2017-12-15 10:33:09 +00:00
Karl Hobley
26d9fb42a3 Changelog/release notes for #3947 2017-12-14 15:22:29 +00:00
Matt Westcott
eef4a70512 Ensure we only look at SearchField records (not FilterField) to find boost values
It's valid for the same field to exist as both a SearchField and FilterField, and in this case get_boost would randomly find the FilterField and try (and fail) to read its 'boost' attribute.
2017-12-14 15:22:29 +00:00
Matt Westcott
39c9372e52 Iterate over the full resultset of execute_sql(result_type=MULTI) when filtering by __in with a subquery
This ensures that it will work equivalently for lists (as returned when connection.features.can_use_chunked_reads is False) as for iterators, and means we don't need to worry about missing results if we ever receive a chunked resultset.
2017-12-14 15:22:29 +00:00
Karl Hobley
0ac90f0d58 Index titles as FilterField
This allows search results to be ordered by title
2017-12-14 15:22:29 +00:00
Karl Hobley
f2ad4cea3c Fix __isnull=True lookup for Elasticsearch 5 2017-12-14 15:22:29 +00:00
Karl Hobley
46746d86e4 Raise FieldError if user tries to order by non-FilterField 2017-12-14 15:22:29 +00:00
Karl Hobley
a3f682ca85 Fix values_list subqueries in Elasticsearch queries 2017-12-14 15:22:29 +00:00
LB (Ben Johnston)
e20fbcc3cd Update register_page_listing_more_buttons example
Use Button instead of PageListingButton in **register_page_listing_more_buttons** section.
2017-12-14 12:37:16 +00:00
LB
5c29f37632 Add filter example images 2017-12-14 12:35:52 +00:00
Karl Hobley
ebb84d835d Add upgrade consideration for removal of API v1 2017-12-14 12:00:15 +00:00
Karl Hobley
91eb6b0f6c Changelog/release note for #4128 2017-12-14 11:36:12 +00:00
Mikalai Radchuk
c1ea37f6d5 Use the exists_alias method with keyword arguments
Documentation for elasticsearch client suggests to pass arguments into exists_alias
as keyword arguments: http://elasticsearch-py.readthedocs.io/en/6.0.0/api.html#elasticsearch.client.IndicesClient.exists_alias

They changed order of arguments at least once:

* https://github.com/elastic/elasticsearch-py/blob/1.6.0/elasticsearch/client/indices.py#L378
* https://github.com/elastic/elasticsearch-py/blob/1.7.0/elasticsearch/client/indices.py#L385

This is also fixes support for `ATOMIC_REBUILD`.
2017-12-14 11:33:39 +00:00
Matt Westcott
e9c8b80545 Fix project template for Django 2.0. Fixes #4125 2017-12-13 16:29:14 +00:00
Matt Westcott
c96b2848bc Use django-modelcluster 4.0 2017-12-13 16:07:50 +00:00
Rob van der Linde
b0a8dc15d4 Fix typo in docstring 2017-12-13 15:42:15 +00:00
LB
4ea8365203 Add ability to set custom value_class on StructBlock 2017-12-13 00:00:35 +00:00
Mads Jensen
7a7b6748db Replaced six.reraise with Python 3 syntax for re-raising 2017-12-12 19:11:49 +00:00
Matt Westcott
8aa8ddcde9
add upper bounds on dependencies that don't already have them 2017-12-06 11:09:09 +00:00
LB
78cd642def Release notes for #4093 2017-12-06 13:29:41 +08:00
LB
aba278af1c simplify tests 2017-12-06 13:22:53 +08:00
LB
05beebf51f add basic tableblock full page test 2017-12-06 13:22:53 +08:00
LB
68ccec22d9 table block defaults in server only + clean up 2017-12-06 13:22:53 +08:00
Sævar Öfjörð Magnússon
8e72d52223 Moving submit button back inside the form element. Fixes #4001 2017-12-05 00:27:15 +00:00
Philipp Bosch
a9f51a09c4 [Docs] Fix imports in "Buttons with dropdown lists" hooks example 2017-12-05 00:12:06 +00:00
Mads Jensen
7f4ce0e6b9 Updated paths in .eslintignore 2017-12-04 22:51:38 +00:00
Matt Westcott
733f487dc0 Enable password validators on the project template.
Thanks to @tmsndrs for the heads-up!
2017-12-04 22:49:09 +00:00
Matt Westcott
3191849b6b Update setup.py and docs to mention Django 2.0 support 2017-12-04 12:58:29 +00:00
Matt Westcott
55a045f723 Test against Django 2.0 final release 2017-12-04 12:58:29 +00:00
Matt Westcott
9584b554e7 Remove dj20 from allow-failures and add more test environments 2017-12-04 12:58:29 +00:00
Matt Westcott
fd4666b257 str() no longer makes SafeText unsafe, so explicitly modify it 2017-12-04 12:58:29 +00:00
Matt Westcott
9bf8735e0e Make generate_signature return a string, so we can pass it to reverse() again 2017-12-04 12:58:29 +00:00
Matt Westcott
ed3cc5587c Account for undocumented management command options used in tests 2017-12-04 12:58:29 +00:00
Matt Westcott
b87eed1cce Fix password reset tests to cast uid to string 2017-12-04 12:58:29 +00:00
Matt Westcott
e78a627bce Pass fields to GinIndex as a kwarg 2017-12-04 12:58:29 +00:00
Matt Westcott
c2af41b4b9 Add Django 2.0 to travis 2017-12-04 12:58:29 +00:00
Matt Westcott
d0ce34b869 Use keyword argument for form field label 2017-12-04 12:58:29 +00:00
Matt Westcott
02d581cad3 Add Django 2.0 compatible imports for RoutablePage 2017-12-04 12:58:29 +00:00
Matt Westcott
6578c006dd
More clarification on when not to replace wagtailcore -> core 2017-12-04 11:18:30 +00:00
Mads Jensen
85b7b7c0df Deleted a Python 2 fallback in tests/customuser/models.py 2017-12-02 13:32:28 +00:00
Janneke Janssen
91d1150fc4 Release notes for #3592 2017-12-01 16:24:05 +01:00
Janneke Janssen
8b7510e16b #3591 Added media queries to the summary numbers to enable responsiveness 2017-12-01 16:11:38 +01:00
LB
7c54c14709 search on changed query only
linting
2017-12-01 12:52:57 +01:00
Janneke Janssen
2cd6086f0b Fix revisions link collapsing 2017-12-01 10:37:11 +01:00
Luiz Boaretto
ee9403f7f7 Fix typo for wagtailsnippets JS
Currently, it's not possible to select a snippet because the JS file is not loaded, resulting in the error:
ReferenceError: createSnippetChooser is not defined

This is due to a typo in the gulp config file.
2017-11-30 16:52:49 +00:00
Robert Rollins
c8b0fff586 Added a flag in dummy_request() to inform middleware that the request is a dummy.
This is useful for middleware that perform destructive changes in
process_response(). They rightfully expect process_response() to only get called
once per thread, but it happens twice during a Page preview when running under
Django 1.10's middleware system. This flag lets the middleware know that they
should potentially skip their destructive operations.

Conflicts:
	wagtail/wagtailcore/models.py
2017-11-30 15:21:01 +00:00
Matt Westcott
7c92ed7bad fix backticks in release notes 2017-11-30 12:43:29 +00:00
LB
a42893f497 FormSubmissionsPanel to use get_submission_class 2017-11-30 12:42:49 +00:00
Matt Westcott
9610c2d3af Make InlinePanel heading independent of label. Original commit by @Adrian-Turjak 2017-11-30 12:08:19 +00:00
Mikalai Radchuk
b36d7cabb3 Update setup.cfg to drop support of Python 2 2017-11-30 11:14:45 +00:00