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
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