| Age | Commit message (Collapse) | Author |
|
Classes overriding __eq__ need a __hash__ such that equal objects have
the same hash.
Thanks akaariai for the report and regebro for the patch.
Backport of e76147a from master.
|
|
The new regex seems not stable enough for being released. Stripping
with regex might need reevaluation for the next release.
Refs #19237.
|
|
Thanks rafales.
Backport of 9a4a1ce.
|
|
Thanks foo@ for the report and Florian Apolloner for the review.
Backport of eafc036476 from master
|
|
Thanks to garrison for the report and patch.
Backport of 4a71b842662162e0892a9269179421ff2191adba from master
|
|
Backport of 507c081484 from master
|
|
malicious users.
|
|
Thanks kujiu for the report and Aymeric Augustin for the review.
Backport of c91667338 from master.
|
|
Backport of 349c4c37f8 from master.
|
|
The previous pattern didn't properly addressed cases where '>'
was present inside quoted tag content.
Backport of bf1871d87 from master.
|
|
Capture warnings in Python >= 2.7 and route through
console handler, which is subject to DEBUG==True
Thanks to dstufft for the idea, and claudep for initial patch
|
|
Thanks tyrion for the report.
Backport of 550ddc66b from master.
|
|
Refs #19276
|
|
for Python 2 object model compatibility methods.
Backport of fc10418 from master.
|
|
Thanks to claudep for the patch.
|
|
Backport of 836cd26d7f3394452f1f5196eb26c99fef128a1a from master
|
|
Returning unicode triggers a bug in Python 2.7:
http://bugs.python.org/issue11638
This problem was introduced in 4a103086 (unicode_literals).
Backport of 45c8818 from master.
|
|
This case was originally designed to handle Exception's which didn't gracefully support coercing themselves to unicode. However, because it lives in the `else` case of `if hasattr(s, '__unicode__'):` we can be sure it's no longer reachable in djanog anymore, because since Python 2.5 exception has subclassed object, which means Exception objects always have an __unicode__ method.
|
|
Fixed #19142 -- Language codes can include numbers (RFC 3066)
|
|
Allow reversed iteration over SortedDict.
|
|
|
|
Thanks mrmachine and everyone else involved on this long-standing ticket.
|
|
Iterators cannot be reversed easily without this method.
|
|
The context strings in [n]pgettext functions should not be marked
themselves for translation.
|
|
This reverts commit 28abf5f0ebc9d380f25dd278d7ef4642c4504545.
Conflicts:
docs/releases/1.5.txt
|
|
Work done by Walter Doekes and Trac alias knoeb. Reviewed by Simon
Charette.
|
|
Filters at logger level are only processed for messages directly
logged to the specific logger, not for loggers in the parent chain.
As the 'django' logger is almost always processed as an inherited
logger, it makes more sense to filter messages at the 'console'
handler level.
|
|
Thanks Preston Holmes for the review.
|
|
Refs #18993.
|
|
accept literals wrapped in single quotes. Thanks to lanyjie for the report.
|
|
Refs #18675.
|
|
Thanks olofom at gmail com for the report.
|
|
|
|
Thanks to jbvsmo for the patch and Brad Pitcher for the tests.
|
|
The problem description in #18239 asserted that
http://bugs.python.org/issue670664 was fixed in Python 2.6.8, but based on
http://bugs.python.org/issue670664#msg146770 it appears that's not correct; the
fix was only applied in 2.7, 3.2, and Python trunk. Therefore we must use our
patched HTMLParser subclass in all Python 2.6 versions.
|
|
which means you can have your root template or file upload path at this location. You almost certainly don't want to do this, except in *very* limited sandboxed situations.
|
|
|
|
Thanks Aymeric Augustin for the report and the initial patch.
|
|
smart_str/smart_text should only be used when a potential lazy
string should be preserved in the result of the function call.
|
|
In all those occurrences, we didn't care about preserving the
lazy status of the strings, but we really wanted to obtain a
real bytestring.
|
|
|
|
to avoid an error introduced in 5301a9d7b1.
|
|
Fixed #18837. Refs #18791.
|
|
This was useful for pre-Python 2.6 support. See commit c6e8e5d9.
|
|
Refs #17040.
|
|
This is a private API; adding a type check is acceptable.
|
|
Made two-digit hours and minutes mandatory in tzinfo (the code used
to crash if a one-digit representation was provided).
Added standalone tests for django.utils.dateparse.
|
|
in docstrings of dateparse functions.
|
|
|
|
This is consistent with the smart_* series of functions and it's going
to be used by the next commit.
|