Commit graph

9264 commits

Author SHA1 Message Date
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
Bertrand Bordage
e509f2572b Fixes admin dropdown arrow. 2017-10-24 12:28:20 +02: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
Bertrand Bordage
d19934512d Only rank specific field search when order_by_relevance. 2017-10-18 21:49:19 +01:00
Bertrand Bordage
5fac10656d Removes useless code. 2017-10-18 21:21:50 +01:00
Bertrand Bordage
272bfba95d Fixes a QuerySet. 2017-10-18 21:16:40 +01:00
Bertrand Bordage
9db5b45ec7 Replace every remaining mention of postgresql_psycopg2.
PostgreSQL search backend were not running because of this since 67b1ddb665 (diff-c2cc727a5e1fca9050dea34af68aa13c)
2017-10-18 21:10:49 +01:00
Bertrand Bordage
780d06215e Fixes fetching results from a queryset directly. 2017-10-18 20:54:46 +01:00
Karl Hobley
522a6868af Delete backend tests 2017-10-18 16:28:42 +01:00
Bertrand Bordage
f16e8d14b8 Isort fixes. 2017-10-18 16:28:26 +01:00
Bertrand Bordage
f17ac6cedf Postgres_search simplification.
This also preserves the original queryset order when using
`order_by_relevance=False`.
2017-10-18 16:03:33 +01:00
Matt Westcott
fd9d36d66b Mark 1.13 as no longer in development
Conflicts:
	CHANGELOG.txt
2017-10-16 19:03:47 +01:00
Matt Westcott
54f362f2ac Fetch new strings for translation
Also remove tr_TR translations, as they will mask the more-complete TR translation due to #3600.
2017-10-16 19:03:21 +01:00
Bertrand Bordage
36c71ba3c9 Fixes form submissions pagination
With this weird `linkurl='-'` argument, the pagination drops the active date filters.
Removing this argument fixes pagination with date filters.

I’m not sure why this argument was introduced, but I guess it could be removed everywhere else, at least when it has the `'-'` value.
2017-10-16 18:49:26 +02:00
Ross Crawford-d'Heureuse
32555f7a1c Added hiddenfield 2017-10-13 17:26:20 +01:00
Sævar Öfjörð Magnússon
9ac07d0a75 Bypass removelist in urlify when dealing with unicode characters. Fixes #3915 2017-10-13 16:57:20 +01:00
Patrick Woods
fa853de486 Use parse_known_args so we can handle extra testrunner named parameters 2017-10-13 16:35:03 +01:00
Matt Westcott
ac80812d88 Remove unsupported environments from appveyor config 2017-10-13 12:27:09 +01:00
Matt Westcott
4089811aed Remove Python 2 fallback code 2017-10-13 12:27:08 +01:00