Commit Graph

15177 Commits

Author SHA1 Message Date
Ryan Rubin c2a1af883e [2.0.x] Fixed #29400 -- Fixed crash in custom template filters that use decorated functions.
Regression in 620e9dd31a.

Backport of a8d12bc280 from master
2018-05-25 11:22:06 -04:00
Richard Morrison cffe9a2497 [2.0.x] Added missing word to render_to_response deprecation warning.
Backport of 35b6a348de from master
2018-05-16 05:33:38 -04:00
Tim Graham 8ecf3c752d [2.0.x] Post-release version bump. 2018-05-01 21:37:29 -04:00
Tim Graham 71fc33ac99 [2.0.x] Bumped version for 2.0.5 release. 2018-05-01 21:25:28 -04:00
Brett Cannon b98fa241dd [2.0.x] Fixed #29334 -- Updated pypi.python.org URLs to pypi.org.
Backport of 64b74804c5 from master
2018-04-17 20:56:33 -04:00
Mariusz Felisiak 3619d32209
[2.0.x] Fixed #29286 -- Fixed column mismatch crash with QuerySet.values() or values_list() after combining an annotated and unannotated queryset with union(), difference(), or intersection().
Regression in a0c03c62a8.

Thanks Tim Graham and Carlton Gibson for reviews.
Backport of 0b66c3b442 from master
2018-04-13 12:27:00 +02:00
Paul Donohue 1ed31efb87 [2.0.x] Fixed #29296 -- Fixed crashes in admindocs when a view is a callable object.
Backport of 33a0b7ac81 from master
2018-04-12 13:11:53 -04:00
Jeremy Bowman d5018abf1c [2.0.x] Fixed #29193 -- Prevented unnecessary foreign key drops when altering a unique field.
Stopped dropping and recreating foreign key constraints on other fields
in the same table as the one which is actually being altered in an
AlterField operation.

Regression in c3e0adcad8.

Backport of ee17bb8a67 from master
2018-04-11 23:17:37 -04:00
Alasdair Nicol 0eb71b85bf [2.0.x] Fixed #29307 -- Fixed inspectdb import paths for django.contrib.postgres fields.
Thanks erindy for the report.

Backport of 65c44a5c1d from master
2018-04-10 09:58:40 -04:00
Tim Graham c745503eb3 [2.0.x] Post-release version bump. 2018-04-02 22:40:19 -04:00
Tim Graham 1858aa7156 [2.0.x] Bumped version for 2.0.4 release. 2018-04-02 22:35:14 -04:00
Claude Paroz 357a48368a [2.0.x] Fixed #29116 -- Fixed OpenLayersWidget deserialization ignoring the widget map's SRID.
Regression in 6ecccad711.

Backport of 2a2ed0e70a from master
2018-04-02 10:31:39 -04:00
Claude Paroz 160829d35b [2.0.x] Fixed #29273 -- Prevented initial selection of empty choice in multiple choice widgets.
Regression in b52c73008a.

Backport of f3b69f9757 from master.
2018-04-02 09:17:38 -04:00
Tim Graham 43348e4aa1 Reverted "[2.0.x] Expanded docs for AbstractBaseUser.has_usable_password()."
This reverts commit c2962d8147. After discussion
in refs #28718, the decision is to treat the reverted statements as bugs.
2018-03-21 20:05:22 -04:00
Amr Anwar 9123fd75ca [2.0.x] Fixed #29229 -- Fixed column mismatch crash when combining two annotated values_list() querysets with union(), difference(), or intersection().
Regression in 7316720603821ebb64dfe8fa592ba6edcef5f3e.

Backport of a0c03c62a8 from master
2018-03-19 21:05:59 -04:00
Mattia Procopio 72667bc6ee [2.0.x] Fixed #29206 -- Fixed PasswordResetConfirmView crash when the URL contains a non-UUID where one is expected.
Backport of aeb8c38178 from master
2018-03-15 21:42:47 -04:00
Artem Tabolin 9bf8664bfd [2.0.x] Fixed #29221 -- Corrected admin's autocomplete widget to add a space after custom classes.
Backport of a2f7433adc from master
2018-03-15 10:56:06 -04:00
dzhuang 59f39ccad8 [2.0.x] Fixed #29213 -- Fixed autocomplete widget's translations for zh-hans/zh-hant.
Backport of e17088a108 from master
2018-03-13 11:09:31 -04:00
Simon Charette 0fd21febe7 [2.0.x] Fixed #29195 -- Fixed Exists.output_field resolution on single-valued queries.
The Subquery class which Exists inherits from defaulted to using single-valued
querie's field if no output_field was explicitly specified on initialization
which was bypassing the Exists.output_field defined at the class level.

Moving Subquery's dynamic output_field resolution to _resolve_output_field
should make sure the fallback logic is only performed if required.

Regression in 08654a99bb.

Thanks Oli Warner for the detailed report.

Backport of 277ed07209 from master
2018-03-08 14:06:10 -05:00
Tim Graham efa0ddab02 [2.0.x] Post-release version bump. 2018-03-06 09:40:58 -05:00
Tim Graham 2d73ffc6f9 [2.0.x] Bumped version for 2.0.3 release. 2018-03-06 08:58:40 -05:00
Tim Graham 94c5da1d17 [2.0.x] Fixed CVE-2018-7537 -- Fixed catastrophic backtracking in django.utils.text.Truncator.
Thanks James Davis for suggesting the fix.
2018-03-06 08:52:23 -05:00
Tim Graham e157315da3 [2.0.x] Fixed CVE-2018-7536 -- Fixed catastrophic backtracking in urlize and urlizetrunc template filters.
Thanks Florian Apolloner for assisting with the patch.
2018-03-06 08:52:23 -05:00
Christophe Mehay e91ff6e29c [2.0.x] Fixed #29176 -- Fixed AbstractBaseUser.normalize_username() crash if username isn't a string.
Backport of 40bac28faa from master
2018-03-02 11:48:43 -05:00
Tomáš Ehrlich 3cdc88ba53 [2.0.x] Fixed #29172 -- Fixed crash with Window expression in a subquery.
Backport of fa352626c2 from master
2018-03-01 10:51:54 -05:00
Claude Paroz 2126e9317e [2.0.x] Updated translations from Transifex 2018-02-28 20:05:45 +01:00
Mariusz Felisiak 10a20e4b37
[2.0.x] Fixed #29166 -- Fixed crash in When() expression with a list argument.
Thanks Matthew Pava for the report and Tim Graham and Carlton Gibson for
reviews.
Regression in 19b2dfd1bf.

Backport of 54f80430be from master
2018-02-28 18:10:58 +01:00
Tim Graham 0993aee31d [2.0.x] Removed blank lines per isort 4.3.0. 2018-02-20 08:48:55 -05:00
Tim Graham fd18345e10 [2.0.x] Refs #29125 -- Made Q.deconstruct() omit 'query_utils' in the path and _connector='AND' since it's a default value.
Backport of 9ba3df8240 from master
2018-02-12 20:47:58 -05:00
Tim Graham aeb35548dc [2.0.x] Fixed #29125 -- Made Q.deconstruct() deterministic with multiple keyword arguments.
Backport of b95c49c954 from master
2018-02-12 20:47:51 -05:00
Raphael Gaschignard 9b5ba2168c [2.0.x] Fixed #29118 -- Fixed crash with QuerySet.order_by(Exists(...)).
Backport of bf26f66029 from master
2018-02-10 19:00:37 -05:00
Manatsawin Hanmongkolchai a1286b5a64 [2.0.x] Fixed #29109 -- Fixed the admin time picker widget for the Thai locale.
Backport of 1a1264f149 from master
2018-02-10 16:06:03 -05:00
Simon Charette 8d03356d35 [2.0.x] Fixed #29108 -- Fixed crash in aggregation of distinct+ordered+sliced querysets.
Regression in 4acae21846.
Thanks Stephen Brooks for the report.

Backport of d61fe24601 from master
2018-02-08 10:00:12 -05:00
Tim Graham b91ff0b20d [2.0.x] Post-release version bump. 2018-02-01 09:46:47 -05:00
Tim Graham e9f9915ba8 [2.0.x] Bumped version for 2.0.2 release. 2018-02-01 09:25:52 -05:00
Tim Graham c37bb28677 [2.0.x] Fixed CVE-2018-6188 -- Fixed information leakage in AuthenticationForm.
Reverted 359370a8b8 (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 2f9861d823.

Thanks Carel Burger for the report and fix.

Backport of 552abffab1 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 aadd3aeb2b.

Backport of 0a37ea56d0 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 a3ba2662cd.
2018-01-31 08:34:11 -05:00
Tim Graham c2962d8147 [2.0.x] Expanded docs for AbstractBaseUser.has_usable_password().
Backport of 92f48680db from master
2018-01-27 11:29:57 -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 19b2dfd1bf.

Thanks Tim Graham for the review.
Backport of b002a032f9 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 4dfd6b88d5.

Backport of 3187c89d6f 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 9a621edf62 from master
2018-01-13 13:10:02 -05:00
Himanshu Chauhan cc1bdce674 [2.0.x] Fixed #28885 -- Fixed hidden content at the bottom of the "The install worked successfully!" page for some languages.
Backport of 1b753b2d60 from master
2018-01-12 19:33:07 -05:00
Tim Graham 0cc2b30044 [2.0.x] Post-release version bump. 2018-01-01 20:11:42 -05:00
Tim Graham e4509136f3 [2.0.x] Bumped version for 2.0.1 release. 2018-01-01 19:41:05 -05:00
Philipp Bosch de29c1f950 [2.0.x] Fixed typo in TemplateCommand argument help text.
Backport of 248fa208cb from master
2018-01-01 19:31:39 -05: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 c815213740 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 c21f158295 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 23b21db31b from master.
2017-12-23 10:28:29 +01:00