1
0
mirror of https://github.com/django/django.git synced 2025-04-07 06:56:40 +00:00

9111 Commits

Author SHA1 Message Date
Mariusz Felisiak
ca0a9c938f
[2.0.x] Fixed #28781 -- Added QuerySet.values()/values_list() support for union(), difference(), and intersection().
Thanks Tim Graham for the review.
Backport of 2d3cc94284674638c334670903d49565039d77ae from master
2017-11-12 14:31:21 +01:00
shanghui
36dd0126a5 [2.0.x] Fixed #28645 -- Reallowed AuthenticationForm to raise the inactive user error when using ModelBackend.
Regression in e0a3d937309a82b8beea8f41b17d8b6298da2a86.

Thanks Guilherme Junqueira for the report and Tim Graham for the review.

Backport of 359370a8b8ca0efe99b1d4630b291ec060b69225 from master
2017-11-08 09:45:35 -05:00
Chris Lamb
518c11352c [2.0.x] Fixed #28663 -- Add a check for likely incorrectly migrated django.urls.path() routes.
Backport of 998c9dd599cd907bb38f440fff13a808571589f8 from master
2017-11-07 11:40:17 -05:00
Дилян Палаузов
e68baf3862 [2.0.x] Fixed #28776 -- Fixed a/an/and typos in docs and comments.
Backport of 6c0042430e3618ce5c276d195d92a6b884daa3a3 from master
2017-11-06 22:41:23 -05:00
Sergey Fedoseev
9e12e02afd [2.0.x] Refs #17448 -- Fixed GeoModelTest.test_raw_sql_query.
The test was a false positive.

Backport of 69922d303dbe8e83952f769caff205abbe100bba from master
2017-11-04 10:56:34 -04:00
Michał Pasternak
e80a014fce [2.0.x] Fixed #28749 -- Added subquery support for ArrayField's __in lookup.
Backport of e554b72a2a5473f3f1e57a32565758757a9e8e87 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 631f4ab06112aca5bd6a57b81159048f936050bf.

Backport of cbe334918a0a80762249706a15b699714b5dc828 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 fcfcf8aae470d893b0d2ef176434461edf9e9c4d 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 abacd09f07f4bb0aa1a3a32bc6e3c3570fa76912 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 03049fb8d96ccd1f1ed0285486103542de42faba 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 f48bc7c3dbd204eefb3c19016b1e4906ac26bee3.

Backport of 81e357a7e19f35235cc998459a10213532727d4e 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 21a3a29dc9d138c248fd7922923b3ec710735c6c 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 d997ab776477dd9ecb158229b2622c7f1ed93dfb 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 b21b1b10af0bbe0498193881520efb02897bd444 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 ec50937bcbe160e658ef881021402e156beb0eaf.

Thanks Simon Charette for review.

Backport of 1b73ccc4bf78af905f72f4658cf463f38ebf7b97 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 d98210c25577e7f007605f4960672e887dd452e6 from master
2017-10-14 20:48:03 -04:00
Claude Paroz
6481795d63 [2.0.x] Refs #28710 -- Simplified l10n format test
Backport of c1fa6672dd995e5ab4e06d5132db40ed0f41a47e 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 8c538871bda3832bca2dddefe317bf4a9230dd45 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 32ade78c55edd6231544607a841a9e7efdcbdb5b 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 a7b5ad8b19a08d7d57302ece74f6e26d2887fd9f 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 fee42fd99ee470528858c2ccb3621135c30ec262.

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

Backport of 41be85862d9067a809ccf3707d2a22dfef23d99a 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 0e212a705e6b2e49a246b16286036c40ec2ac4f8 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 4d60261b2a77460b4c127c3d832518b95e11a0ac 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 1b823b8f182e8f31b8c9db281311ef718299eda7 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 dd82f3327124fd2762cf6df2ac8c6380772bf127 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 508b5debfb16843a8443ebac82c1fb91f15da687 which
added Node.__eq__().

Backport of fc6528b25ab1834be1a478b405bf8f7ec5cf860c 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 e8c45963296eb8bf3938bf9ece30b585a8cbb097 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 95993a89ce6ca5f5e26b1c22b65c57dcb8c005e9.

Backport of 67a6ba391bbcf1a4c6bb0c42cb17e4fc0530f6d2 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 eef95ea96faef0b7dbbe0c8092202b74f68a899b.
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 01c6a3e227b645e8dea97e9befecd23d1d3b8581.
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