| Age | Commit message (Collapse) | Author |
|
No test because this code is already deprecated (part of FastCGI support).
Backport of 5836a577 from master
|
|
Backport of daaeb84158 from master.
|
|
Backport of 083d285b82 from master
|
|
Backport of 1dcc603eff from master
|
|
Backport of 2779c299c8 from master.
|
|
This also fixes #22686 as some sort of side-effect.
Backport of dbb48d2bb99 from master.
|
|
Note these are no longer in master anyway.
|
|
Backport of b6b873d2ada0d7c2a616d11f161a7688df15f45f from master
|
|
Also added tests with pytz and removed misplaced tests.
Backport of 1109ebd from master
|
|
Also added tests for is/make_aware/naive.
Thanks Tom Michaelis for the report.
Backport of fa89acf from master
|
|
Backport of 8a2f04db91 from master
|
|
This is a security fix. Disclosure following shortly.
|
|
Thanks david.fischer.ch at gmail.com for the report.
Backport of 4492ea5475 from master
|
|
Thanks ygbo for the report.
Backport of 142c27218 from master.
|
|
No more `NewBase` horrors.
Thanks to bendavis78 for his work on merging this into six.
Backport of a2340ac6d6 from master
|
|
Backport of 2bcb8bfc8d from master
|
|
Backport of 428c0bbe1bcd303560d7e96d7d2721ff3fdc0e3f from master
|
|
flake8 catches
Backport of 778ce245dd466bce1b19f89e52cf9ed8f1b46513 from master
|
|
Backport of c28beb4291 from master.
|
|
There may be more than 100 (default maxsize) commonly seen xx-yy values
on some sites. The additional memory consumption isn't significant.
Also added a comment explaining why this cache must have a maxsize.
Backport of f356b6e from master.
|
|
Backport of b077ba7ac1 from master
|
|
Backport of 45ef4baf5c from master
|
|
Backport of 2ec82c7387 from master
|
|
Backport of 684e8a941b from master
|
|
The fact that strip_tags cannot guarantee to really strip all
non-safe HTML content was not clear enough. Also see:
https://www.djangoproject.com/weblog/2014/mar/22/strip-tags-advisory/
Backport of 6ca6c36f82b from master.
|
|
Fixed #21840 -- Moved dunder methods from SimpleLazyObject to LazyObject...
|
|
|
|
Since d2e242d16c6dde6f4736086fb38057424bed3edb made isinstance()
calls work correctly on LazyObject, we can simplify the
implementation of is_local_storage added in
7e27885c6e7588471fd94a4def16b7081577bdfc.
|
|
This commit also added tests for LazyObject and refactored
the testsuite of SimpleLazyObject so that it can share
test cases with LazyObject.
|
|
Refs #21188. Now pure Python DeprecationWarning visibility should
be back to Python defaults.
|
|
Thanks Anssi Kääriäinen for the idea and Simon Charette for the
review.
|
|
Thanks Piotr Kasprzyk for help with the patch.
|
|
|
|
By removing the 'supported' keyword from the detection methods and only relying
on a cached settings.LANGUAGES, the speed of said methods has been improved;
around 4x raw performance. This allows us to stop checking Python's incomplete
list of locales, and rely on a less restrictive regular expression for
accepting certain locales.
HTTP Accept-Language is defined as being case-insensitive, based on this fact
extra performance improvements have been made; it wouldn't make sense to
check for case differences.
|
|
|
|
language session key use
|
|
Refs #21725.
|
|
With this pull request, request #878 should considered closed.
Thanks to nvie for the patch.
|
|
Thanks to nedbatchelder for the report.
|
|
Thanks esevece for the suggestion and Nick Sandford and Martin Warne
for the inital work on the patch.
|
|
Refs #21049. Thanks quinox for the report.
|
|
in Windows NT 6.
Original patch by Vajrasky Kok. Reviewed by Florian Apolloner, Aymeric Augustin.
|
|
When a method decorator was used in conjunction with a decorator
implemented as a descriptor, method_decorator did not correctly respect
the method binding.
Thanks for Graham Dumpleton for the report and initial patch.
|
|
Used available_attrs in method_decorator
|
|
import_string().
Thanks Aymeric Augustin for the suggestion and review.
|
|
|
|
This reverts commit 2ee447fb5f8974b432d3dd421af9a242215aea44.
That commit introduced a regression (#21882) and didn't really
do what it was supposed to: while it did delay the evaluation
of lazy objects passed to mark_safe(), they weren't actually
marked as such so they could end up being escaped twice.
Refs #21882.
|
|
|
|
Thanks Wim for the report.
|
|
This is the result of Christopher Medrela's 2013 Summer of Code project.
Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian
Apolloner, and Alex Gaynor for review notes along the way.
Also: Fixes #8579, fixes #3055, fixes #19844.
|