summaryrefslogtreecommitdiff
path: root/django/utils
AgeCommit message (Collapse)Author
2014-11-11Raised SuspiciousFileOperation in safe_join.Aymeric Augustin
Added a test for the condition safe_join is designed to prevent. Previously, a generic ValueError was raised. It was impossible to tell an intentional exception raised to implement safe_join's contract from an unintentional exception caused by incorrect inputs or unexpected conditions. That resulted in bizarre exception catching patterns, which this patch removes. Since safe_join is a private API and since the change is unlikely to create security issues for users who use it anyway -- at worst, an uncaught SuspiciousFileOperation exception will bubble up -- it isn't documented.
2014-11-05Added a dummy class for HTMLParserError; refs #23763.Tim Graham
2014-11-04Updated six to 1.8.0.Tim Graham
2014-11-03Fixed #18456 -- Added path escaping to HttpRequest.get_full_path().Unai Zalakain
2014-10-31Fixed #23715 -- Prevented urlize from treating a trailing ! as part of an URLMarkus Holtermann
Thanks to 57even for the report.
2014-10-31Fixed #23670 -- Prevented partial import state during module autodiscoveryMarkus Holtermann
Thanks kostko for the report.
2014-10-30Fixed #23558 -- documented slugify limitationsDavid Hoffman
2014-10-20Fixed #23688 -- Updated cached_property to preserve docstring of original ↵John-Scott Atlakson
function
2014-10-20Fixed #20221 -- Allowed some functions that use mark_safe() to result in ↵Jon Dufresne
SafeText. Thanks Baptiste Mispelon for the report.
2014-10-20Fixed #23668 -- Changed make_aware() and make_naive() to use the current ↵Jon Dufresne
timezone by default Thanks Aymeric Augustin for review.
2014-10-16Fixed #23664 -- Provided a consistent definition for OrderedSet.__bool__Thomas Chaumeny
This also defines QuerySet.__bool__ for consistency though this should not have any consequence as bool(qs) used to fallback on QuerySet.__len__ in Py3.
2014-10-16Fixed #19508 -- Implemented uri_to_iri as per RFC.Anubhav Joshi
Thanks Loic Bistuer for helping in shaping the patch and Claude Paroz for the review.
2014-10-15Added unicode_literals to the jslexer.Florian Apolloner
This ensure that ''.join(c) in jslex.py always returns text.
2014-10-10Fixed #23613 -- Deprecated django.utils.checksumsJaap Roes
2014-10-06Fixed #23593 -- Fixed crash in AdminEmailHandler with non-ASCII characters ↵Tim Graham
in request. Thanks edevil for the report and Simon Charette for review.
2014-09-30Fixed #23569 -- Allowed using configs besides dictConfig in LOGGING_CONFIG.Seth Hill
2014-09-29Replaced set([foo, ...]) by {foo, ...} literals. Refs PR 3282.Thomas Chaumeny
Thanks Collin Anderson for the review.
2014-09-21Fixed #23196 -- Short-circuited empty string translationYuri Kriachko
Translating an empty string used to return the gettext catalog metadata instead of the empty string. Thanks Ned Batchelder for the suggestion, Tim Graham for the review and Anton Berezin and Claude Paroz for contributions to the patch.
2014-09-10Avoided using deprecated version of importlib; refs #23418.Tim Graham
2014-09-09Fixed flake8 warnings.Tim Graham
2014-09-09Fixed urlize after smart_urlquote rewriteClaude Paroz
Refs #22267.
2014-09-09Fixed #22267 -- Fixed unquote/quote in smart_urlquoteClaude Paroz
Thanks Md. Enzam Hossain for the report and initial patch, and Tim Graham for the review.
2014-09-08Fixed #23399 -- Optimized django.utils.http.int_to_bas36()Tim Graham
Thanks liminspace for the patch and Keryn Knight for benchmarking.
2014-09-08Fixed flake8 warning.Tim Graham
2014-09-08Fixed #23418 -- Fail when migration deconstruct produces invalid importMarkus Holtermann
2014-09-05Revert "Fixed #23384 -- Allowed overriding part of a dictionary-type setting"Claude Paroz
This reverts commit 66757fee7e921ad4c35e0b3f80c25e026100b31c. Discussions have led to think that this functionality does not bring significant benefits to justify the added complexity. Read also discussions on ticket #22734.
2014-09-05Limited lines to 119 characters in django/Tim Graham
refs #23395.
2014-08-31Fixed #23388 -- Made django.utils.timezone.override usable as a decoratorThomas Chaumeny
2014-08-30Fixed #22820 -- Treated int and long types alike in lazy_numberClaude Paroz
Thanks kwist for the report and the initial patch.
2014-08-30Fixed #23384 -- Allowed overriding part of a dictionary-type settingClaude Paroz
This change is needed for upcoming changes where settings might be grouped in a parent dictionary. Thanks Tim Graham for the review.
2014-08-28Fixed #23381 -- Context manager restored state should be determined in __enter__Thomas Chaumeny
2014-08-28Fixed #23323 -- Made django.utils.translation.override usable as a decorator.Thomas Chaumeny
2014-08-28Factorize some code using ContextDecorator.Thomas Chaumeny
2014-08-23Fixed #22867 -- Memoized django.utils.version.get_git_changeset().Tim Graham
Restored original fix that had to be removed because the old djangoproject server was still using Python 2.6.
2014-08-22Fixed #23333 -- Made urlsafe_base64_decode() return proper type on Python 3.Ian Foote
2014-08-18Fixed #22171 -- Improved sanitize_separators clevernessClaude Paroz
Thanks Klaas van Schelven for the report and Tim Graham for the review.
2014-08-15Fixed #23287 -- Updated error message for classonlymethod decorator.Tim Graham
2014-08-15Fixed #23269 -- Deprecated django.utils.remove_tags() and removetags filter.Tim Graham
Also the unused, undocumented django.utils.html.strip_entities() function.
2014-08-04Fixed a typo in comment in django/utils/version.pySitesh Shrivastava
2014-08-02Fixed two typos in docstrings.Baptiste Mispelon
2014-07-25Fixed #23083 -- Fixed runserver reloading when deleting a file.Tim Graham
Thanks Collin Anderson for the report and hirokiky for the fix.
2014-07-15Fixed #22991 -- Prevented *.pyc files in autoreload monitoringClaude Paroz
This fixes a regression introduced in 6d302f639. Thanks lorinkoz at gmail.com for the report, Collin Anderson for the initial patch and Simon Charette for the review.
2014-07-14Fixed #23005 -- Allowed specifying special fallback languagesClaude Paroz
This fixes the Chinese language issues described in #23005 but also provides for other fallback exceptions by updating the LANG_INFO structure. Thanks caxekis at gmail.com for the report and Tim Graham for the review.
2014-07-14Fixed #22789 -- Deprecated django.contrib.webdesign.Tim Graham
Moved the {% lorem %} tag to built-in tags.
2014-07-11Bump the default iterations for PBKDF2.Alex Gaynor
The rate at which we've increased this has not been keeping up with hardware (and software) improvements, and we're now considerably behind where we should be. The delta between our performance and an optimized implementation's performance prevents us from improving that further, but hopefully once Python 2.7.8 and 3.4+ get into more hands we can more aggressively increase this number.
2014-07-09Fixed #22223 -- Prevented over-escaping URLs in reverse()Claude Paroz
And follow more closely the class of characters defined in the RFC 3986. Thanks Erik van Zijst for the report and the initial patch, and Tim Graham for the review.
2014-07-07Fixed flake8 errors.Tim Graham
2014-07-06Fixed pyinotify performance regression in 15f82c7011Claude Paroz
Refs #9722. Thanks Tim Graham for the review.
2014-07-04Updated urlize regex following a93ee5112d4LarryBrid
Prevent urlize from turning some.organization, an.intern etc. into urls. Refs #22941.
2014-07-02Fixed #22941 - Added support for domain-only links with chars after the TLD ↵LarryBrid
to urlize. It now works with something like google.com/foo/bar