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
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
e6065c7b8363202c5eb13ba10c97a8c24d014b45.
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 ff60c5f9de3e8690d1e86f3e9e3f7248a15397c8.
2017-09-12 09:51:02 -04:00
Josh Schneier
0dbcd0e87f
Added tests for DecimalValidator.
2017-09-11 14:18:02 -04:00
Simon Charette
c466ef3b34
Tested field deconstruction with DEFAULT_DB_TABLESPACE and db_tablespace.
2017-09-11 12:20:45 -04:00
Sergey Fedoseev
3905cfa1a5
Fixed #28353 -- Fixed some GIS functions when queryset is evaluated more than once.
...
Reverted test for refs #27603 in favor of using FuncTestMixin.
2017-09-11 11:56:39 -04:00
Sergey Fedoseev
a0b4ecce57
Fixed #28392 -- Fixed GIS's WKT regex to match large scientific notation numbers.
...
Thanks Greg Larmore for report and initial patch.
2017-09-11 09:13:02 -04:00
Claude Paroz
a599ae6018
Refs #24928 -- Added introspection support for PostgreSQL RangeField
2017-09-09 20:22:47 +02:00
Claude Paroz
0cbb6ac007
Refs #24928 -- Added introspection support for PostgreSQL JSONField
...
Thanks Adam Johnson and Tim Graham for the reviews.
2017-09-09 18:26:29 +02:00
Luoxzhg
ffbee67f8e
Fixed some comments referring to a nonexistent TestClient class.
2017-09-09 11:21:15 -04:00
Sergey Fedoseev
63d2472b10
Fixed capitalization of "Spherical Mercator."
2017-09-09 09:35:30 -04:00
Sergey Fedoseev
0ab1dc0a8b
Fixed deepcopy of AreaField and DistanceField.
2017-09-08 14:13:50 -04:00
Tim Graham
0c4ac12a7b
Fixed #28546 -- Fixed translation's to_locale() with langauge subtags.
...
Thanks Brent Hand for the initial patch.
2017-09-08 13:46:00 -04:00
Tim Graham
9829b75d5b
Added more tests for translation's to_locale().
2017-09-08 13:43:06 -04:00
Tim Graham
6e4c6281db
Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."
...
This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda
because try/except performs better.
2017-09-07 08:16:21 -04:00
Sergey Fedoseev
f3c9562143
Fixed #15648 -- Allowed QuerySet.values_list() to return a namedtuple.
2017-09-06 15:32:32 -04:00