Wykres commitów

7623 Commity (5ce8fe35661cf2cc85721d839646cd12d3ed7555)

Autor SHA1 Wiadomość Data
Matt Westcott 5ce8fe3566 Remove dont_use_model_field_default_for_empty_data flag required by Django 1.10.1 2017-10-25 16:15:02 +01:00
Matt Westcott 6ab10b5e11 Remove remaining DJANGO_VERSION checks for Django <1.11 2017-10-25 16:15:02 +01:00
Matt Westcott 1f54141aeb Remove unnecessary comment re Django 1.8 2017-10-25 16:15:02 +01:00
Matt Westcott 6882a1fb42 Remove pre-Django 1.8 code from check_image_file_format 2017-10-25 16:15:02 +01:00
Matt Westcott 98f600c514 Remove Django 1.8 fallback code for transaction.on_commit 2017-10-25 16:15:02 +01:00
Matt Westcott 60c26e5565 Remove note about Django 1.10 being required for postgres search backend 2017-10-25 16:15:02 +01:00
Matt Westcott 56a68c3ee8 Remove more Django 1.8 references from docs 2017-10-25 16:15:02 +01:00
Karl Hobley 499ef19a9b Changelog/release note for #3521 2017-10-25 15:28:32 +01:00
Karl Hobley 1c09c808c6 Fix offset when using scroll API 2017-10-25 15:10:40 +01:00
Karl Hobley 0bcf5a951e Factor out repeated code 2017-10-25 15:10:40 +01:00
Karl Hobley 688b025187 Implement tweaks suggested by @BertrandBordage 2017-10-25 15:10:40 +01:00
Karl Hobley ca1ebc7a1e Added tests that retrieve more than 100 results from Elasticsearch 2017-10-25 15:10:40 +01:00
Karl Hobley dea74450ca Clear the scroll when we are done with it 2017-10-25 15:10:40 +01:00
Karl Hobley d794a52ff8 Don't use scroll API when less than 100 items are requested 2017-10-25 15:10:40 +01:00
Karl Hobley 7199bbae47 Fetch search results with scroll API
This allows Wagtail to load in many search results for a single search
query. It also fixes the behaviour when the limit is not set (currently
automatically limits to 10 results but now will return all results).
2017-10-25 15:10:40 +01:00
Karl Hobley 328e337395 Changelog and release notes for #3940 and #3968 2017-10-25 11:56:39 +01:00
Bertrand Bordage 3b585665c9 Merge pull request #3968 from timheap/patch-1
Fix using modeladmin_register as a decorator
2017-10-25 11:28:16 +02:00
Tim Heap 83c0ef42da Fix using modeladmin_register as a decorator
Using `modeladmin_register` as a decorator worked, and the ModelAdmin subclass was registered successfully, but as `modeladmin_register` did not return the ModelAdmin subclass, the decorated class would be `None`. Returning the class prevents this issue, so `modeladmin_register` will now work as expected as a decorator.
2017-10-25 09:55:54 +11:00
Matt Westcott 9ec8daba43 Update `slugurl` documentation with a "real-world" example.
Thanks to @rifuso for the suggestion!
2017-10-23 12:40:07 +01:00
Mads Jensen 543d09fa15 Removed empty super().__init__ constructs. 2017-10-23 10:12:12 +01:00
Bertrand Bordage 4e6f5cd878 Merge pull request #3939 from kaedroho/search-tests
Rewrite search tests
2017-10-20 16:49:53 +02:00
Karl Hobley c0dc85d86a Remove unused imports 2017-10-20 15:44:10 +01:00
Karl Hobley c7d37043ca Deduplicate Elasticsearch index rebuilder tests 2017-10-20 14:44:16 +01:00
Karl Hobley ea585cb5a3 Use lists instead of sets in search tests
And a few other tweaks
2017-10-20 12:56:35 +01:00
Karl Hobley c60bdbb8c7 Override test_search_all for Elasticsearch 2017-10-20 12:55:33 +01:00
Karl Hobley a577595779 Fix spelling of consistent 2017-10-20 12:32:52 +01:00
Karl Hobley d70e2ad4fc Mark test_filter_isnull_true as expectedFailure on ES5 2017-10-20 10:25:58 +01:00
Bertrand Bordage 0f5640b212 Fixes `INDEX_SETTINGS` docs. 2017-10-19 23:11:40 +01:00
Karl Hobley 8cf2c14619 Update test_single_result to use custom ordering
For consistency with other slicing tests
2017-10-19 16:58:13 +01:00
Karl Hobley ecb52e9271 Enable tests that were fixed by #3940 2017-10-19 16:49:05 +01:00
Karl Hobley 3b26706957 Merge branch 'master' into search-tests 2017-10-19 16:29:20 +01:00
Karl Hobley 6514650aa4 Merge pull request #3940 from BertrandBordage/postgres_search_improvements
Postgres_search simplification.
2017-10-19 16:27:48 +01:00
Karl Hobley 73ffbc0d17 {} => set() 2017-10-19 16:22:37 +01:00
Karl Hobley 085f1e1678 Reorder character names alphabetically 2017-10-19 16:22:37 +01:00
Karl Hobley 26ebee4733 Fix lint errors 2017-10-19 16:22:37 +01:00
Karl Hobley 8c99ff2385 Update postgres search tests 2017-10-19 16:22:37 +01:00
Bertrand Bordage 52fd56e5e7 Use `class_is_indexed`. 2017-10-19 15:40:26 +01:00
Bertrand Bordage bfbc7adcab Defines the GIN search index in the models. 2017-10-19 15:17:40 +01:00
Bertrand Bordage 74aaa91ef6 Moves PostgreSQL `get_config` to the search backend. 2017-10-19 15:02:09 +01:00
Karl Hobley f52c8c4433 Rewrite Elasticsearch specific tests 2017-10-19 14:13:17 +01:00
Karl Hobley 6a52ae0494 Rewrite backend tests 2017-10-19 14:13:17 +01:00
Karl Hobley 208ca70b1f Run Elasticsearch tests with one shard 2017-10-19 14:13:17 +01:00
Karl Hobley d067239dfe Update other tests 2017-10-19 14:13:17 +01:00
Karl Hobley fc9708a2af Update Elasticsearch tests 2017-10-19 14:13:17 +01:00
Karl Hobley fe1953a70c Replace search test models 2017-10-19 14:13:17 +01:00
Bertrand Bordage 781263d4e1 Optimizes the PostgreSQL search query generated by the ORM.
Makes queries at least as fast as before.
2017-10-19 11:44:43 +01:00
Matt Westcott 05adf2c85d recompile .mo files 2017-10-19 11:04:52 +01:00
Kees Hink c03f43a70b Also show link to image usage page on confirm_delete page 2017-10-19 10:23:36 +01:00
Bertrand Bordage 77dfab5968 Removes a newline. 2017-10-18 22:21:32 +01:00
Bertrand Bordage 42c38a6af0 Adds back default primary key ordering. 2017-10-18 22:06:57 +01:00