1
0
mirror of https://github.com/django/django.git synced 2024-12-24 01:55:49 +00:00
Commit Graph

25039 Commits

Author SHA1 Message Date
Claude Paroz
c1fa6672dd Refs #28710 -- Simplified l10n format test 2017-10-14 21:07:51 +02:00
k
399a8db33b Fixed #28695 -- Allowed models to use __init_subclass__(). 2017-10-13 21:29:12 -04:00
Simon Charette
9dd405973c 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.
2017-10-13 16:06:08 -04:00
Simon Charette
216eda103b Refs #28575 -- Removed unnecessary code for model exception pickling.
Setting __qualname__ is sufficient for pickling of DoesNotExist and
and MultipleObjectsReturned to work correctly.
2017-10-13 15:45:12 -04:00
Tim Graham
f2868f9739 Updated email.Util (Python 2) references to email.utils (Python 3). 2017-10-13 15:36:09 -04:00
Mariusz Felisiak
4f27e475b3 Refs #28643 -- Reorganized database functions.
Thanks Tim Graham for the review.
2017-10-13 21:23:00 +02:00
Claude Paroz
8c538871bd Fixed #28710 -- Fixed the Basque DATE_FORMAT string
Thanks Eneko Illarramendi for the report and initial patch.
2017-10-13 19:48:20 +02:00
Tom
32ade78c55 Refs #28440 -- Fixed server connection closing test on macOS. 2017-10-13 13:29:29 -04:00
Mariusz Felisiak
ad8036d715 Refs #28643 -- Reorganized database functions docs.
Thanks Tim Graham for the review.
2017-10-13 18:20:11 +02:00
LeeHanYeong
3ffbd54566 Removed incorrect reference to ModelChoiceField in Field.choices docs. 2017-10-13 10:37:04 -04:00
Tim Graham
941b0a5b33 Fixed #28708 -- Added constants to detect the Python version. 2017-10-13 10:11:15 -04:00
Tom
abb636c1af Improved performance of utils.html.escape(). 2017-10-13 09:20:13 -04:00
Rachel Tobin
6c92f711ea Refs #28575 -- Allowed pickling Model.DoesNotExist and MultipleObjectsReturned classes. 2017-10-13 09:16:09 -04:00
Paulo
a7b5ad8b19 Fixed #27846 -- Made Model.refresh_from_db() clear cached relations. 2017-10-12 17:04:10 -04:00
Tim Graham
df0aebc893 Simplified IfNode.nodelist 2017-10-12 16:46:31 -04:00
Tim Graham
cf59392e16 Removed unused ForNode.__iter__().
Unknown if it was ever used.
2017-10-12 16:46:31 -04:00
Tim Graham
0edff2107f Refs #28248 -- Clarified the precision of PASSWORD_RESET_TIMEOUT_DAYS. 2017-10-12 14:58:18 -04:00
Sævar Öfjörð Magnússon
f90be0a83e Fixed #28688 -- Made admin's URLify.js skip removal of English words if non-ASCII chars are present. 2017-10-12 11:50:20 -04:00
Mads Jensen
e8649ae368 Added test for FlatPage.__str__(). 2017-10-12 09:45:49 -04:00
Mads Jensen
bd8deeccd5 Added setUp() method to FlatpageModelTests. 2017-10-12 09:45:26 -04:00
François Freitag
41be85862d Fixed #28679 -- Fixed urlencode()'s handling of bytes.
Regression in fee42fd99e.

Thanks Claude Paroz, Jon Dufresne, and Tim Graham for the guidance.
2017-10-12 09:08:33 -04:00
Daniel Tao
4d60261b2a Fixed #28601 -- Prevented cache.get_or_set() from caching None if default is a callable that returns None. 2017-10-10 09:20:34 -04:00
François Freitag
0e212a705e Split django.utils.http tests into separate test classes. 2017-10-10 08:53:01 -04:00
Hasan Ramezani
6aec130a4c Fixed #28591 -- Added an error message for createsuperuser --username= (blank). 2017-10-09 21:49:35 -04:00
Mads Jensen
22ff4f81b1 Fixed #28423 -- Expanded docs for indexing contrib.postgres fields. 2017-10-09 12:19:08 -04:00
Mariusz Felisiak
0899d583bd Fixed #28670 -- Added FETCH/OFFSET support on Oracle.
Thanks Tim Graham for the review.
2017-10-09 18:07:03 +02:00
Mads Jensen
81d5320db5 Added tests for Combinable's bitwise logical operation errors. 2017-10-09 11:49:19 -04:00
Tim Graham
50de55f399 Moved link in "Features removed in 2.0" to be more specific. 2017-10-09 09:39:57 -04:00
Johannes Hoppe
3a191bd4ab Fixed #28685 -- Fixed awkward wrapping of Select2 chips. 2017-10-09 09:00:24 -04:00
François Freitag
e3a30f2d16 Refs #23919 -- Corrected django.utils.http.urlencode()'s documented signature.
Follow up to fee42fd99e.
2017-10-09 08:54:44 -04:00
Mariusz Felisiak
11ade8eefd Refs #24254 -- Removed unnecessary SQL AS clause in SQLCompiler.as_sql().
Incorrect on Oracle.
2017-10-06 12:47:41 -04:00
Simon Charette
9d93dff333 Fixed #28665 -- Change some database exceptions to NotImplementedError per PEP 249. 2017-10-06 12:47:08 -04:00
Tim Graham
7d8d630e37 Refs #27857 -- Removed Python 3.4 from tox.ini. 2017-10-06 09:09:05 -04:00
Mads Jensen
062684057e Updated link to Tox documentation in tox.ini. 2017-10-06 09:02:17 -04:00
Tim Graham
fd4698fe3f Added stub release notes for 1.11.7. 2017-10-05 14:44:50 -04:00
Tim Graham
a8bcb8b509 Added release date for 1.11.6. 2017-10-05 14:13:32 -04:00
Mariusz Felisiak
1b823b8f18 Fixed #28596 -- Fixed QuerySet.bulk_create() and cascade deletion crash on Oracle when using more than 65535 parameters.
Thanks Tim Graham for the review.
2017-10-05 18:52:37 +02:00
Mads Jensen
86367a11d3 Added tests for invalid {% for %} usage and ForLoop.__repr__(). 2017-10-05 11:33:14 -04:00
Mads Jensen
ee7ab1b6e2 Refs #27546 -- Replaced hardcoded class name in ForNode.__repr__(). 2017-10-05 11:23:35 -04:00
Mariusz Felisiak
03da070f5c Refs #28670 -- Moved LIMIT/OFFSET SQL to DatabaseOperations.limit_offset_sql().
Thanks Tim Graham for the review.
2017-10-04 20:24:38 +02:00
Tim Graham
39eba25f47 Passed ignore_failures as a kwarg for readability in template tags.
Also removed unused VariableDoesNotExist catching where failures are ignored.
2017-10-04 09:26:13 -04:00
Tim Graham
d0c761d3f8 Refs #28584 -- Removed unused DatabaseFeatures.can_share_in_memory_db. 2017-10-03 20:17:12 -04:00
Tim Graham
a2626cb3fe Fixed #28674 -- Removed unused check in QuerySet._batched_insert(). 2017-10-03 19:56:44 -04:00
Tim Graham
27193aea00 Fixed #28584 -- Dropped support for SQLite < 3.7.15. 2017-10-03 10:42:18 -04:00
Tim Graham
51d230e00b Fixed #28675 -- Removed always True variable in SQLInsertCompiler.execute_sql() check.
Unused since 7deb25b8dd.
2017-10-03 10:32:11 -04:00
Tim Graham
491eb56fd4 Refs #28677 -- Doc'd that on_delete is required in migrations. 2017-10-03 09:46:15 -04:00
Joseph Lin
4e725c647f Updated Python license for 2017. 2017-10-02 16:59:05 -04:00
Tom
f1c007bbf2 Fixed #28642 -- Added caching to parse_accept_lang_header(). 2017-10-02 14:07:28 -04:00
Tom
f04e6732c3 Refs #27804 -- Used subTest() in parse_accept_lang_header() test. 2017-10-02 14:04:52 -04:00
Hunter Richards
47016adbf5 Fixed #28490 -- Removed unused code in admin.E108 check. 2017-10-02 13:04:42 -04:00