Simon Charette
8d03356d35
[2.0.x] Fixed #29108 -- Fixed crash in aggregation of distinct+ordered+sliced querysets.
...
Regression in 4acae21846f6212aa992763e587c7e201828d7b0.
Thanks Stephen Brooks for the report.
Backport of d61fe246015aa4fdc6dcb837ffb1442fa71ae586 from master
2018-02-08 10:00:12 -05:00
Tim Graham
c37bb28677
[2.0.x] Fixed CVE-2018-6188 -- Fixed information leakage in AuthenticationForm.
...
Reverted 359370a8b8ca0efe99b1d4630b291ec060b69225 (refs #28645 ).
This is a security fix.
2018-02-01 09:13:59 -05:00
Tim Graham
1bd45e2458
[2.0.x] Fixed #29094 -- Fixed crash when entering an invalid uuid in ModelAdmin.raw_id_fields.
...
Regression in 2f9861d823620da7ecb291a8f005f53da12b1e89.
Thanks Carel Burger for the report and fix.
Backport of 552abffab16cbdff571486b683e7e7ef12e46066 from master
2018-02-01 08:46:13 -05:00
Tim Graham
834843ca4f
[2.0.x] Fixed #29091 -- Fixed makemigrations crash if migrations directory doesn't have __init__.py.
...
Regression in aadd3aeb2ba3153e35bd805c80c901f289a6f333.
Backport of 0a37ea56d05208e31ed2f29fdffca65b6d92fa2e from master
2018-01-31 09:37:07 -05:00
Tim Graham
55e16f25e9
[2.0.x] Fixed #29071 -- Fixed contrib.auth.authenticate() crash if a backend doesn't accept a request but a later one does.
...
Regression in a3ba2662cdaa36183fdfb8a26dfa157e26fca76a.
2018-01-31 08:34:11 -05:00
Tim Graham
14f1c4d435
[2.0.x] Wrapped an import per isort.
2018-01-30 19:54:04 -05:00
Mariusz Felisiak
42622b8934
[2.0.x] Fixed #29054 -- Fixed a regression where a queryset that annotates with geometry objects crashes.
...
Made GEOSGeometryBase hashable.
Regression in 19b2dfd1bfe7fd716dd3d8bfa5f972070d83b42f.
Thanks Tim Graham for the review.
Backport of b002a032f90b8cd228cfcee6c88cd238a8191cc0 from master
2018-01-27 11:14:42 +01:00
Jon Dufresne
61c74ae74f
[2.0.x] Fixed #29067 -- Fixed regression in QuerySet.values_list(..., flat=True) followed by annotate().
...
Regression in 4dfd6b88d520b43b6363946e5ee58ba14cd1efe6.
Backport of 3187c89d6f8c60ca7e78093d5b37e0709e71cea9 from master
2018-01-26 10:22:14 -05:00
Étienne Loks
8f2e3857ce
[2.0.x] Fixed #29016 -- Fixed incorrect foreign key nullification on related instance deletion.
...
Backport of 9a621edf624a4eb1f1645fca628a9e432f0de776 from master
2018-01-13 13:10:02 -05:00
Tim Graham
26a20e4fba
[2.0.x] Fixed a GeoIP2 test failure with the latest GeoIP2 database.
...
Backport of 66d74676e23c32bc676fb0706af8580b391953b6 from master
2018-01-10 10:13:59 -05:00
Mariusz Felisiak
8f67eeaef4
[2.0.x] Refs #28958 -- Added a test for ModelAdmin with query expressions in ordering.
...
This provides additional test coverage but isn't a regression test for
the ticket's issue.
Backport of 1d00923848d504c6132019492b8d5a6cdf8261db from master
2017-12-27 19:49:15 +01:00
Mariusz Felisiak
b54302d226
[2.0.x] Fixed #28958 -- Fixed admin changelist crash when using a query expression in the page's ordering.
...
Thanks Tim Graham for the review.
Backport of c8152137400b5932578cd1788b79560c9772e56b from master
2017-12-27 18:46:05 +01:00
Ran Benita
4e4619a2b8
[2.0.x] Fixed #28944 -- Fixed crash when chaining values()/values_list() after QuerySet.select_for_update(of=()).
...
Backport of c21f158295d92e35caf96436bfdbbff554fc5569 from master
2017-12-26 12:18:39 -05:00
Claude Paroz
830636df73
[2.0.x] Fixed #28594 -- Removed Jython docs and specific code
...
Thanks Andrey Martyanov for the report, and Tim Graham for the review.
Backport of 23b21db31bfcf2a065d485617412cca43a311a4c from master.
2017-12-23 10:28:29 +01:00
Simon Charette
b40a1d774d
[2.0.x] Fixed #28884 -- Fixed crash on SQLite when renaming a field in a model referenced by a ManyToManyField.
...
Introspected database constraints instead of relying on _meta.related_objects
to determine whether or not a table or a column is referenced on rename
operations.
This has the side effect of ignoring both db_constraint=False and virtual
fields such as GenericRelation which aren't backend by database level
constraints and thus shouldn't prevent the rename operations from being
performed in a transaction.
Regression in 095c1aaa898bed40568009db836aa8434f1b983d.
Thanks Tim for the additional tests and edits, and Mariusz for the review.
Backport of 9f7772e098439f9edea3d25ab127539fc514eeb2 from master
2017-12-22 16:09:49 -05:00
Tilmann Becker
c99ab335a1
[2.0.x] Fixed #28947 -- Fixed crash when coercing a translatable URL pattern to str.
...
Regression in df41b5a05d4e00e80e73afe629072e37873e767a.
Backport of 01384ce36c3fddfbcc5af6e1108bdb8cd3e9389d from master
2017-12-20 20:56:57 -05:00
Tim Graham
6f86d8bc69
[2.0.x] Fixed #28941 -- Fixed crash in testserver command startup.
...
Regression in 2b09e4c88e96cb03b29f5a6b0e4838ab4271e631.
Backport of e7b804c060a1f9fc089cf935801aa85b09db062b from master
2017-12-20 15:15:24 -05:00
Tim Graham
7c939ae6e4
[2.0.x] Refs #28932 -- Skipped the failing test for refs #28915 on Oracle.
2017-12-20 11:59:45 -05:00
Tim Graham
22fc7a6594
[2.0.x] Fixed #25277 -- Restored test dependency to the original python-memcached.
...
Backport of 770b9ea77fb5e39d616e62b54c06755e6d4f4d36 from master
2017-12-18 15:21:21 -10:00
Sergey Fedoseev
0f7ca1e878
[2.0.x] Fixed #28915 -- Prevented SQLite from truncating trailing zeros in the fractional part of DecimalField.
...
This reverts commit a146b65628e702a9a3ed5be21542ca45366fbb29 and adds
a test for the regression.
Backport of 6fd6d8383f48ea2fe4e058725fa30529a083e9a5 from master
2017-12-12 22:01:25 -10:00
Rodrigo Pinheiro Marques de Araújo
9f39f202ab
[2.0.x] Fixed #28898 -- Corrected admin check to allow a OneToOneField in ModelAdmin.autocomplete_fields.
...
Backport of 30a389bd7795016d7f48bcda997e5dea5116f9bb from master
2017-12-12 21:40:05 -10:00
Sergey Fedoseev
ce26ec0163
[2.0.x] Fixed #28896 -- Reallowed filtering a queryset with GeometryField=None.
...
Regression in 58da81a5a372a69f0bac801c412b57f3cce5f188.
Backport of da71e4bb086593b5ca76bf698358d27ead2cfed2 from master
2017-12-12 17:15:29 -10:00
Sergey Fedoseev
a5c6040447
[2.0.x] Refs #27985 -- Reallowed using __exact=None as an alias for __isnull=True if a custom lookup class with lookup_name != None is registered as the exact lookup.
...
Regression in 58da81a5a372a69f0bac801c412b57f3cce5f188 and prerequisite
for refs #28896 .
Backport of 10bfa876be59feec24bb6a40fa11bece808ee405 from master
2017-12-12 17:15:16 -10:00
Morgan Wahl
5ca9cf47a7
[2.0.x] Refs #28856 -- Fixed caching of a GenericForeignKey pointing to a model that uses more than one level of MTI.
...
Forwardport of 35222035029863f95769e2e59beeeb953d125689 from stable/1.11.x
2017-12-08 14:00:50 -05:00
Tim Graham
a06828cd2e
[2.0.x] Reverted "[1.11.x] Refs #28856 -- Fixed caching of a GenericForeignKey pointing to a model that uses more than one level of MTI."
...
This reverts commit a2aea4521d5e3cf8c76ef17e6edafee1c87bbf0a as it was
committed by mistake.
2017-12-07 09:06:09 -05:00
Morgan Wahl
a2aea4521d
[1.11.x] Refs #28856 -- Fixed caching of a GenericForeignKey pointing to a model that uses more than one level of MTI.
2017-12-06 10:08:52 -05:00
Mariusz Felisiak
741711f8a2
[2.0.x] Refs #28876 -- Fixed incorrect foreign key constraint name for models with quoted db_table.
...
Thanks Simon Charette and Tim Graham for the review and Carlos E. C.
Leite for the report.
Backport of fc48047586a8f92262f55d9d2bfb976325844b23 from master
2017-12-05 22:34:56 +01:00
Mariusz Felisiak
73ab743866
[2.0.x] Refs #28876 -- Fixed incorrect class-based model index name generation for models with quoted db_table.
...
Thanks Simon Charette and Tim Graham for the review and Carlos E. C.
Leite for the report.
Backport of f79d9a322c6008e5fada1453aebfb56afc316cc8 from master
2017-12-05 22:34:47 +01:00
Nick Pope
c1d57615ac
[2.0.x] Fixed #28890 -- Removed newlines between MultiWidget's subwidgets.
...
Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.
Backport of e014f91a70aa3ccdddb363a733c76e35597424fa from master
2017-12-05 11:44:11 -05:00
Tim Graham
dbdf5deab0
[2.0.x] Refs #28871 -- Fixed admin_views selenium test failure.
...
Backport of 7664fe275910bb31fcca2d54844bedde19fc4ed9 from master
2017-12-02 09:59:02 -05:00
Tim Graham
63d425c679
[2.0.x] Fixed #28871 -- Fixed initialization of autocomplete widgets in "Add another" inlines.
...
Also allowed autocomplete widgets to work on AdminSites with a name other
than 'admin'.
Backport of 81057645f61fe545f4f11737dbd3040043ed2436 from master
2017-12-01 22:18:12 -05:00
Simon Charette
31d318d19c
[2.0.x] Fixed #28849 -- Fixed referenced table and column rename on SQLite.
...
Thanks Ramiro for the input and Tim for the review.
Backport of 095c1aaa898bed40568009db836aa8434f1b983d from master
2017-12-01 22:15:48 -05:00
Tim Graham
50b35eef0b
[2.0.x] Used a separate admin site for autocomplete tests.
...
Backport of 474bd7a5d4b0b47eeedc03ad471ae9e630e95258 from master
2017-12-01 22:05:16 -05:00
Sergey Fedoseev
70da0420c2
[2.0.x] Fixed #28863 -- Fixed filter on annotation that contains Q.
...
Backport of cf12257db23fa248c89a3da3f718aa01a50ca659 from master
2017-12-01 21:49:01 -05:00
Tim Graham
4dc35e126d
[2.0.x] Fixed #28305 -- Fixed "Cannot change column 'x': used in a foreign key constraint" crash on MySQL with a sequence of AlterField or RenameField operations.
...
Regression in 45ded053b1f4320284aa5dac63052f6d1baefea9.
Backport of c3e0adcad8d8ba94b33cabd137056166ed36dae0 from master
2017-12-01 19:09:21 -05:00
Vasiliy Bolshakov
6ece69a726
[2.0.x] Fixed #28866 -- Made InlineAdminFormSet include InlineModelAdmin's Media before its formset's Media.
...
This provides better backwards compatibility following refs #28377 .
Backport of 03974d81220ffd237754a82c77913799dd5909a4 from master
2017-12-01 08:45:50 -05:00
Simon Charette
d31424fec1
[2.0.x] Fixed #28856 -- Fixed a regression in caching of a GenericForeignKey pointing to a MTI model.
...
Regression in b9f8635f58ad743995cad2081b3dc395e55761e5.
Modified backport of e50add6ca1605dcc06c8c5a5770342779a4d5124 from master
2017-11-30 10:43:38 -05:00
Mads Jensen
4d3b8e199e
[2.0.x] Fixed #28702 -- Made query lookups for CIText fields use citext.
...
Backport of f0a68c25118786d47041d0a435b2afa953be3c86 from master
2017-11-29 10:40:01 -05:00
Nicolas Delaby
ae4132a940
[2.0.x] Fixed #28837 -- Fixed test client crash if an exception with more than one arg is raised.
...
Also removed usage of the problematic pattern elsewhere.
Regression in 6e55e1d88a5c4453e25f0caf7ffb68973de5c0ba.
Backport of 746caf3ef821dbf7588797cb2600fa81b9df9d1d from master
2017-11-28 19:58:23 -05:00
Raphael Michel
75c1fd6538
[2.0.x] Fixed #28848 -- Fixed SQLite/MySQL crash when ordering by a filtered subquery that uses nulls_first/nulls_last.
...
Backport of 616f468760e4984915bb2ccca6b9eb3d80ddadb0 from master
2017-11-27 11:39:57 -05:00
Dražen Odobašić
286120444f
[2.0.x] Fixed #28817 -- Made QuerySet.iterator() use server-side cursors after values() and values_list().
...
Backport of d97f026a7ab5212192426e45121f7a52751a2044 from master
2017-11-21 10:38:14 -05:00
Tim Graham
d380afc6a5
[2.0.x] Added assertion helpers for PostgreSQL's server-side cursor tests.
...
Backport of 6cb6382639cbd29c8348b42c4d43b02c950eff3a from master
2017-11-21 08:27:26 -05:00
Tim Graham
205290f510
[2.0.x] Fixed #28804 -- Fixed "Unknown system variable 'transaction_isolation'" on MariaDB.
...
Regression in 967450a3bf940c43db891fe1e2ef3bcf73456ff8.
Backport of e3c852cbd609484b272f563f3c21066fb12ef7f8 from master
2017-11-20 10:08:58 -05:00
Tim Graham
5b21e3983d
[2.0.x] Refs #28814 -- Fixed test_runner failure on Python 3.7.
...
Due to https://bugs.python.org/issue30399 .
Backport of 9d1d3b2d2fe0bef995b024368088eeabbdf73629 from master
2017-11-17 17:25:20 -05:00
Mariusz Felisiak
3e7adb62bf
[2.0.x] Skipped test_exact_sliced_queryset_limit_one_offset on Oracle.
...
This required slicing on subquery with equal operator.
Thanks Tim Graham for the review.
2017-11-15 21:14:40 +01:00
Mariusz Felisiak
0b2eb44ca0
[2.0.x] Fixed incorrect integer division in DeletionTests.test_large_delete_related.
...
Backport of 3fb1ad9505fa28ec9c89039fbba40f6ebea8bf8e from master
2017-11-15 21:01:33 +01:00
Tim Graham
189d9b16c8
[2.0.x] Fixed test failures due to ordering differences on PostgreSQL 10.
...
Backport of 9bea555d06e0e585645053ae6ca9ac3dc8b899bd from master
2017-11-15 09:41:56 -05:00
Simon Charette
0696edbc6a
[2.0.x] Fixed #28792 -- Fixed index name truncation of namespaced tables.
...
Refs #27458 , #27843 .
Thanks Tim and Mariusz for the review.
Backport of ee85ef8315db839e5723dea19d8b971420a2ebb4 from master
2017-11-15 07:58:36 -05:00
Tim Graham
022aebc550
[2.0.x] Fixed invalid escape sequence warning in check_framework test.
...
Backport of 532a4f22ad94db320cb0fd66f4c7ee57d17ac65a from master
2017-11-14 19:09:36 -05:00
Sergey Fedoseev
5638b77627
[2.0.x] Fixed #28794 -- Fixed tx_isolation deprecation warning on MySQL 5.7.20+.
...
Backport of 967450a3bf940c43db891fe1e2ef3bcf73456ff8 from master
2017-11-14 15:42:16 -05:00