Commit Graph

9106 Commits

Author SHA1 Message Date
Michał Pasternak e80a014fce [2.0.x] Fixed #28749 -- Added subquery support for ArrayField's __in lookup.
Backport of e554b72a2a from master
2017-11-01 15:40:32 -04:00
Charlie Denton 2e6dd975a2 [2.0.x] Fixed #28750 -- Allowed models to define Meta.manager_inheritance_from_future for backwards compatibility.
Refs 631f4ab061.

Backport of cbe334918a from master
2017-10-31 21:57:00 -04:00
Paulo f2d5417d3b [2.0.x] Fixed #28742 -- Fixed AttributeError crash when assigning None to cached reverse relations.
Backport of fcfcf8aae4 from master
2017-10-30 14:25:34 -04:00
Adam Johnson ea901eb9ad [2.0.x] Refs #27318 -- Made DummyCache.set_many() return a list for consistency with other backends.
Backport of abacd09f07 from master
2017-10-30 12:24:29 -04:00
Ran Benita 6b5f2e3b79 [2.0.x] Refs #28010 -- Allowed reverse related fields in SELECT FOR UPDATE .. OF.
Thanks Adam Chidlow for polishing the patch.

Backport of 03049fb8d9 from master
2017-10-28 21:42:51 -04:00
Mariusz Felisiak f5184ae5dc [2.0.x] Fixed #28689 -- Fixed unquoted table names in Subquery SQL when using OuterRef.
Regression in f48bc7c3db.

Backport of 81e357a7e1 from master
2017-10-25 17:25:45 -04:00
Tomer Chachamu 57d46606ed [2.0.x] Fixed #28722 -- Made QuerySet.reverse() affect nulls_first/nulls_last.
Backport of 21a3a29dc9 from master
2017-10-21 21:00:30 -04:00
Jonas Haag a831e4bad0 [2.0.x] Fixed #28711 -- Fixed unordered_list template filter with lazy translations.
Backport of d997ab7764 from master
2017-10-18 20:05:24 -04:00
Jonas Haag 673427d3fc [2.0.x] Refs #23260 -- Tested nested generator input to unordered_list template filter.
Backport of b21b1b10af from master
2017-10-18 19:46:07 -04:00
Tim Graham 9b3b7804d2 [2.0.x] Fixed #28497 -- Restored the ability to use sliced QuerySets with __exact.
Regression in ec50937bcb.

Thanks Simon Charette for review.

Backport of 1b73ccc4bf from master
2017-10-16 15:40:08 -04:00
Yuri Kaszubowski Lopes 325d3027db [2.0.x] Fixed #28713 -- Prevented ModelBackend.get_all_permissions() from mutating get_user_permissions().
Backport of d98210c255 from master
2017-10-14 20:48:03 -04:00
Claude Paroz 6481795d63 [2.0.x] Refs #28710 -- Simplified l10n format test
Backport of c1fa6672dd from master.
2017-10-14 21:09:44 +02:00
Claude Paroz 5595eccd4f [2.0.x] Fixed #28710 -- Fixed the Basque DATE_FORMAT string
Thanks Eneko Illarramendi for the report and initial patch.
Backport of 8c538871bd from master.
2017-10-13 19:50:18 +02:00
Tom 73d025a042 [2.0.x] Refs #28440 -- Fixed server connection closing test on macOS.
Backport of 32ade78c55 from master
2017-10-13 13:46:21 -04:00
Paulo 5d3f2aa3f1 [2.0.x] Fixed #27846 -- Made Model.refresh_from_db() clear cached relations.
Backport of a7b5ad8b19 from master
2017-10-12 17:29:53 -04:00
François Freitag 51998a2988 [2.0.x] Fixed #28679 -- Fixed urlencode()'s handling of bytes.
Regression in fee42fd99e.

Thanks Claude Paroz, Jon Dufresne, and Tim Graham for the guidance.

Backport of 41be85862d from master
2017-10-12 09:36:07 -04:00
François Freitag 2a55063dcc [2.0.x] Split django.utils.http tests into separate test classes.
Backport of 0e212a705e from master
2017-10-11 09:45:45 -04:00
Daniel Tao dc112bf530 [2.0.x] Fixed #28601 -- Prevented cache.get_or_set() from caching None if default is a callable that returns None.
Backport of 4d60261b2a from master
2017-10-10 09:35:52 -04:00
Mariusz Felisiak 20d6785426 [2.0.x] Fixed #28596 -- Fixed QuerySet.bulk_create() and cascade deletion crash on Oracle when using more than 65535 parameters.
Thanks Tim Graham for the review.
Backport of 1b823b8f18 from master
2017-10-05 18:54:45 +02:00
Tim Graham d6cec5f6ff [2.0.x] Fixed #27979 -- Made MySQL raise IntegrityError rather than OperationalError when saving negative numbers in PositiveInteger fields.
Backport of dd82f33271 from master
2017-09-29 18:33:10 -04:00
Mariusz Felisiak 8368d5a400 [2.0.x] Fixed #28629 -- Made tree.Node instances hashable.
Regression in 508b5debfb which
added Node.__eq__().

Backport of fc6528b25a from master
2017-09-28 12:07:36 -04:00
Josh Schneier 7c6590af5f [2.0.x] Fixed #28562 -- Fixed DecimalValidator handling of positive exponent scientific notation.
Backport of e8c4596329 from master
2017-09-27 09:42:20 -04:00
Tim Graham e241b4e797 [2.0.x] Reverted "Fixed #28248 -- Fixed password reset tokens being valid for 1 day longer than PASSWORD_RESET_TIMEOUT_DAYS."
This reverts commit 95993a89ce.

Backport of 67a6ba391b from master
2017-09-25 09:06:32 -04:00
Nicolas Delaby 01d440fa1e Fixed #27332 -- Added FilteredRelation API for conditional join (ON clause) support.
Thanks Anssi Kääriäinen for contributing to the patch.
2017-09-22 11:53:17 -04:00
Anssi Kääriäinen 771e06af2a Added a test for QuerySet.select_related() reverse caching. 2017-09-21 14:25:42 -04:00
Shai Berger d612026c37 Refs #28595 -- Added a hook to add execute wrappers for database queries.
Thanks Adam Johnson, Carl Meyer, Anssi Kääriäinen, Mariusz Felisiak,
Michael Manfre, and Tim Graham for discussion and review.
2017-09-21 12:13:09 -04:00
Mads Jensen 41a7876991 Added test for too large input to django.utils.http.base36_to_int(). 2017-09-21 10:21:02 -04:00
Niall Dalton 4fe6588da3 Fixed #28576 -- Added color interpretation method to GDALBand. 2017-09-21 09:42:38 -04:00
Thomas Schorr 52eb5b289e Fixed #28617 -- Made ogrinspect output pep8 compliant. 2017-09-20 21:03:14 -04:00
Sjoerd Job Postmus df41b5a05d Fixed #28593 -- Added a simplified URL routing syntax per DEP 0201.
Thanks Aymeric Augustin for shepherding the DEP and patch review.
Thanks Marten Kenbeek and Tim Graham for contributing to the code.
Thanks Tom Christie, Shai Berger, and Tim Graham for the docs.
2017-09-20 18:04:42 -04:00
Florian Apolloner c4c128d67c Fixed #28488 -- Reallowed error handlers to access CSRF tokens.
Regression in eef95ea96f.
2017-09-20 16:22:18 -04:00
Florian Apolloner 77f82c4bf1 Initialized CsrfViewMiddleware once in csrf_tests. 2017-09-20 16:22:12 -04:00
Tim Graham 46dcdf9a29 Added a checks test for valid i18n patterns. 2017-09-20 10:23:28 -04:00
Tim Graham f7b0532ec0 Refs #28334 -- Fixed crash in hstore/citext oid caching during test db creation. 2017-09-19 07:04:31 -04:00
Mariusz Felisiak fb02ebe889 Fixed #28597 -- Fixed crash with the name of a model's autogenerated primary key in an Index's fields. 2017-09-18 14:06:00 -04:00
Johannes Hoppe 94cd8efc50 Fixed #14370 -- Allowed using a Select2 widget for ForeignKey and ManyToManyField in the admin.
Thanks Florian Apolloner and Tim Graham for review and
contributing to the patch.
2017-09-18 13:48:02 -04:00
Claude Paroz 774f5548bd Fixed #28610 -- Skipped test when serializer is not available
Thanks Tim Graham for the review.
2017-09-18 18:22:13 +02:00
Mads Jensen d549b88050 Fixed #26608 -- Added support for window expressions (OVER clause).
Thanks Josh Smeaton, Mariusz Felisiak, Sergey Fedoseev, Simon Charettes,
Adam Chainz/Johnson and Tim Graham for comments and reviews and Jamie
Cockburn for initial patch.
2017-09-18 09:42:29 -04:00
Tim Graham da1ba03f1d Added test skipping for a PostgreSQL JSONField test. 2017-09-18 09:19:26 -04:00
Claude Paroz 256182c43d Revert "Refs #21286 -- Enabled serializer tests with time pk model"
This reverts commit 01c6a3e227.
Unfortunately, the YAML serializer is not yet able to cope with time values.
2017-09-18 09:34:21 +02:00
Claude Paroz 01c6a3e227 Refs #21286 -- Enabled serializer tests with time pk model 2017-09-17 19:29:33 +02:00
Igor Gumenyuk 86a18dc46a Fixed #28334 -- Added caching for hstore/citext OIDs. 2017-09-15 10:00:12 -04:00
Mads Jensen 1dafd8cb0b Refs #24031 -- Added test for When.__repr__(). 2017-09-15 06:13:38 -04:00
Tim Graham 116940e3ef Fixed a Dutch translation in i18n tests. 2017-09-14 08:26:38 -04:00
Tim Graham 7cc8507d9c Added a test for mixing args and kwargs in reverse(). 2017-09-14 07:07:41 -04:00
Tim Graham ee4043f735 Refs #28593 -- Moved django.conf.urls.include() to django.urls().
The old location remains for backwards compatibility. Documentation
will be updated separately along with the rest of the URL routing changes.
2017-09-13 16:32:03 -04:00
Mariusz Felisiak c6a1faecc3 Refs #27090 -- Added real database sequence introspection.
Thanks Mariusz Felisiak for the Oracle part and Tim Graham for the
review.
2017-09-13 20:12:32 +02:00
Tom ac756f16c5 Fixed #28440 -- Fixed WSGIServer hang on responses without a Content-Length.
Disabled keep-alive to fix the regression in
e6065c7b83.
2017-09-12 10:41:28 -04:00
Tim Graham f896eb30f6 Removed django.contrib.gis.geometry.backend.
The layer of indirection is unchanged and undocumented
since its introduction in ff60c5f9de.
2017-09-12 09:51:02 -04:00
Josh Schneier 0dbcd0e87f Added tests for DecimalValidator. 2017-09-11 14:18:02 -04:00