Karl Hobley
aefa7b5469
Fix test_delete for Elasticsearch
2017-12-18 11:37:35 +00:00
Karl Hobley
9d745541c8
Recategorise an expectedFailure test
...
This test won't work even if the index API was implemented for the DB
backend
2017-12-18 11:37:35 +00:00
Bertrand Bordage
06833b3e09
Merge pull request #4139 from gasman/cleanup/lru_cache
...
Replace use of django.utils.lru_cache with functools.lru_cache
2017-12-15 18:42:44 +01:00
Matt Westcott
38e03c8fd1
Replace use of django.utils.lru_cache with functools.lru_cache
2017-12-15 17:31:35 +00:00
Karl Hobley
4336ada482
Fix Elasticsearch tests on Django 2.0
...
Fixes #4137
2017-12-15 14:25:00 +00:00
Matt Westcott
be2b5a7981
Release notes for #4060
2017-12-15 13:50:36 +00:00
Matt Westcott
f9ec1a4296
Ensure that expanding image embeds doesn't break if alt attribute is missing
...
This could potentially happen on earlier versions of Wagtail if the whitelister decided to escape the alt attribute with single-quotes instead of double, meaning that our regexps fail to pick it up
2017-12-15 13:46:58 +00:00
Matt Westcott
2b1dadcb05
Make link / embed handlers consistently work with unescaped versions of attributes. Fixes #2669 and #3126
2017-12-15 13:46:58 +00:00
Matt Westcott
0cd53a766e
Make whitelister consistently use double-quotes on attributes
2017-12-15 13:46:58 +00:00
LB
6866fa0d8d
add Django 2.0 note
2017-12-15 10:33:09 +00:00
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