Commit Graph

15101 Commits

Author SHA1 Message Date
Dražen Odobašić 286120444f [2.0.x] Fixed #28817 -- Made QuerySet.iterator() use server-side cursors after values() and values_list().
Backport of d97f026a7a from master
2017-11-21 10:38:14 -05:00
Tim Graham 205290f510 [2.0.x] Fixed #28804 -- Fixed "Unknown system variable 'transaction_isolation'" on MariaDB.
Regression in 967450a3bf.

Backport of e3c852cbd6 from master
2017-11-20 10:08:58 -05:00
Tim Graham 8e63cc582f [2.0.x] Refs #28814 -- Fixed "SyntaxError: Generator expression must be parenthesized" on Python 3.7.
Due to https://bugs.python.org/issue32012.

Backport of 931c60c521 from master
2017-11-17 15:40:12 -05:00
Tim Graham 498b5db6fe [2.0.x] Bumped version for 2.0 release candidate 1. 2017-11-15 18:40:13 -05:00
Claude Paroz cd6d18abc3 [2.0.x] Updated main translation catalog 2017-11-15 16:21:21 +01: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 ee85ef8315 from master
2017-11-15 07:58:36 -05:00
Sergey Fedoseev 5638b77627 [2.0.x] Fixed #28794 -- Fixed tx_isolation deprecation warning on MySQL 5.7.20+.
Backport of 967450a3bf 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 2d3cc94284 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 e0a3d93730.

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

Backport of 359370a8b8 from master
2017-11-08 09:45:35 -05:00
Andrei Fokau a977ae9139 [2.0.x] Refs #28593 -- Updated old class names in comments following URL routing changes.
Backport of 3ae9c356c5 from master
2017-11-08 08:44:10 -05:00
Chris Lamb 518c11352c [2.0.x] Fixed #28663 -- Add a check for likely incorrectly migrated django.urls.path() routes.
Backport of 998c9dd599 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 6c0042430e from master
2017-11-06 22:41:23 -05:00
Sergey Fedoseev 05232cda2f [2.0.x] Simplified GeometryField.select_format().
Backport of e9a370bb6a from master
2017-11-04 10:56:28 -04:00
Ondrej Kolimar c7b1224914 [2.0.x] Fixed #28768 -- Added Slovak char map for Javascript slug generation.
Backport of ba2c4ec7cc from master
2017-11-03 09:44:19 -04:00
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
Tim Graham cd37e47096 [2.0.x] Fixed #28741 -- Removed unnecessary leading dot from cross-domain cookie examples.
Backport of afd375fc34 from master
2017-11-01 11:06:56 -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
Ville Skyttä 542e6b0207 [2.0.x] Refs #23919 -- Updated references to urllib.quote() to Python 3 location.
Backport of 23e551ce6c from master
2017-10-31 12:06:09 -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
Tim Baxter 6e2ace8c4e [2.0.x] Refs #28457 -- Removed unused .next-step CSS in django/views/templates/default_urlconf.html.
Backport of 73241132f2 from master
2017-10-28 08:01:13 -04:00
Tim Baxter 1b77eb07bb [2.0.x] Refs #28457 -- Updated the colors of the 'Congrats' page for WCAG AA compliance.
Backport of f6b5cecc71 from master
2017-10-28 08:01:03 -04:00
Duarte Fernandes ecfa7e570f [2.0.x] Fixed #28747 -- Fixed typos in django/conf/global_settings.py comments.
Backport of 019c2600a6 from master
2017-10-26 21:49:06 -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
Scot Hacker e3b59772ba [2.0.x] Fixed #28735 -- Fixed typo in django/views/templates/default_urlconf.html.
Backport of 6642a646f0 from master
2017-10-24 11:34:50 -04:00
Tim Graham 9f654ae63b [2.0.x] Removed Python 2 comment in ValidationError.
Backport of 7fb913c805 from master
2017-10-23 08:57:07 -04:00
Claude Paroz f6ea7c139f [2.0.x] Refs #14807 -- Removed unneeded mark_safe call
Backport of 68407e3545 from master.
2017-10-22 21:26:57 +02: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
Simon Charette 3640693914 [2.0.x] Fixed outdated comment in RelatedObjectDoesNotExist.
Backport of 0a69479b6c from master
2017-10-18 20:58:23 -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
Eneko Illarramendi aed7fdc03b [2.0.x] Updated Basque (eu) locale formats.
Backport of 2346636b0c from master
2017-10-17 11:35:07 -04:00
Tim Graham 7cc155a04c [2.0.x] Bumped version for 2.0 beta 1. 2017-10-16 21:39:18 -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
Joe Arthur 04a92ebe49 [2.0.x] Fixed typo in MessageMiddleware.process_response() docstring.
Backport of 61a6245dc5 from master
2017-10-16 10:35:38 -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
Simon Charette cb42dc809b [2.0.x] Corrected examples in related field descriptor docstrings.
Using lowercased model class names suggested that accessing the attribute
from instances of the class returned an instance of the descriptor, but
this is only the case when accessed from the model class.

Backport of 9dd405973c from master
2017-10-13 16:07:51 -04:00
Tim Graham 53a3d2b245 [2.0.x] Updated email.Util (Python 2) references to email.utils (Python 3).
Backport of f2868f9739 from master
2017-10-13 15:36:44 -04: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
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
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
Johannes Hoppe 5825212440 [2.0.x] Fixed #28685 -- Fixed awkward wrapping of Select2 chips.
Backport of 3a191bd4ab from master
2017-10-09 09:00:39 -04:00
Mariusz Felisiak 71da2b4f11 [2.0.x] Refs #24254 -- Removed unnecessary SQL AS clause in SQLCompiler.as_sql().
Incorrect on Oracle.

Backport of 11ade8eefd from master
2017-10-06 13:18:56 -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
Jon Dufresne 5091bb6a07 [2.0.x] Refs #27025, #28593 -- Fixed "invalid escape sequence" warnings in urls/resolvers.py.
Backport of f0ffa3f4ea from master
2017-09-30 20:33:18 -04: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
Simon Charette deb3b58b36 [2.0.x] Refs #28492 -- Defined aggregates' output_field at the class level.
Missed in 08654a99bb.

Backport of f1b713024e from master
2017-09-29 08:20:08 -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