summaryrefslogtreecommitdiff
path: root/django/utils
AgeCommit message (Collapse)Author
2019-03-28[2.2.x] Fixed "byte string" typo in various docs and comments.Mariusz Felisiak
Backport of 881362986a1ee8f650752de8471a895890b71f96 from master
2019-02-27[2.2.x] Refs #30179 -- Moved topological sort functions to django.utils.Matthias Kestenholz
Backport of e04209e181c99ac16ca769d115ac640015a83757 from master.
2019-02-27[2.2.x] Fixed #30215 -- Fixed autoreloader crash for modules without __spec__.shiningfm
Regression in c8720e7696ca41f3262d5369365cc1bd72a216ca. Backport of 99cfb28e995388db109e2f2ed15307f09945dda8 from master.
2019-02-25[2.2.x] Refs #27685 -- Removed "watchman unavailable" message.Tom Forbes
Backport of 65ef5f467ba84c26392a157de1622d805401ec7d from master
2019-02-11[2.2.x] Fixed CVE-2019-6975 -- Fixed memory exhaustion in ↵Carlton Gibson
utils.numberformat.format(). Thanks Sjoerd Job Postmus for the report and initial patch. Thanks Michael Manfre, Tim Graham, and Florian Apolloner for review. Backport of 402c0caa851e265410fbcaa55318f22d2bf22ee2 from master
2019-01-28[2.2.x] Fixed #25624 -- Fixed autoreload crash with jinja2.ModuleLoader.Tom Forbes
Backport of 1e92407f83ed35be35f876777935b983ab9587be from master.
2019-01-19[2.2.x] Removed redundant period in Watchman unavailable message.Tom Forbes
Backport of d8a2f4ec09e5b7e73a706a1b1b5bf74d8bdc64b3 from master.
2019-01-16Fixed #20147 -- Added HttpRequest.headers.Santiago Basulto
2019-01-13Fixed #27685 -- Added watchman support to the autoreloader.Tom Forbes
Removed support for pyinotify (refs #9722).
2019-01-02Used 4 space hanging indent for dictionaries.Tim Graham
Thanks Mariusz Felisiak for auditing.
2018-12-27Fixed #30024 -- Made urlencode() and Client raise TypeError when None is ↵Jon Dufresne
passed as data.
2018-12-06Fixed #29986 -- Added .format() support to ngettext_lazy strings.Patrick Arminio
2018-11-23Improved readability of translation's to_locale().Jaap Roes
2018-11-19Fixed #29478 -- Added support for mangled names to cached_property.Thomas Grainger
Co-Authored-By: Sergey Fedoseev <fedoseev.sergey@gmail.com>
2018-11-06Refs #29926 -- Removed usage of gettext.translation()'s deprecated codeset ↵Tim Graham
parameter. https://bugs.python.org/issue33710
2018-10-17Fixed #29838 -- Fixed crash when combining Q objects with __in lookups and ↵aspalding
lists. Regression in fc6528b25ab1834be1a478b405bf8f7ec5cf860c.
2018-10-17Refs #29838 -- Fixed make_hashable() for values that have lists or dicts ↵aspalding
nested in tuples. And for non-hashable values that are iterable, e.g. sets.
2018-10-17Moved make_hashable() to django.utils and added tests.aspalding
2018-10-14Fixed typo in django/utils/datastructures.py.Taoufik
2018-10-12Simplified django.utils.html.urlize().Tim Graham
2018-10-12Refs #29826 -- Removed unused characters from urlize configuration.Tim Graham
The HTML characters are unused because urlize is meant to be applied to plain text and these characters aren't properly detected (refs #29826). Angle brackets and quotes are present in word_split_re and therefore won't be used in WRAPPING_PUNCTUATION.
2018-10-10Refs #27795 -- Removed force_bytes() usage from django/utils/http.py.Jon Dufresne
django.utils.http.urlsafe_base64_encode() now returns a string, not a bytestring. Since URLs are represented as strings, urlsafe_base64_encode() should return a string. All uses immediately decoded the bytestring to a string anyway. As the inverse operation, urlsafe_base64_decode() accepts a string.
2018-10-04Simplified utils.text.StreamingBuffer.Sergey Fedoseev
2018-09-28Refs #28909 -- Simplifed code using unpacking generalizations.Sergey Fedoseev
2018-09-26Refs #29784 -- Switched to https:// links where available.Jon Dufresne
2018-09-25Refs #27795 -- Removed force_bytes() usage in utils/_os.py.Jon Dufresne
2018-09-25Normalized spelling of "lowercase" and "lowercased".Jon Dufresne
2018-09-19Fixed #29772 -- Made LazyObject proxy __lt__() and __gt__().Javier Buzzi
2018-08-28Refs #27795 -- Removed force_bytes() usage in django/utils/cache.py.Jon Dufresne
2018-08-21Fixed #29654 -- Made text truncation an ellipsis character instead of three ↵Claude Paroz
dots. Thanks Sudhanshu Mishra for the initial patch and Tim Graham for the review.
2018-08-08Fixed #29643 -- Fixed crash when combining Q objects with __in lookups and ↵Mariusz Felisiak
lists. Regression in fc6528b25ab1834be1a478b405bf8f7ec5cf860c.
2018-08-07Refs #29244 -- Fixed django.utils.inspect.method_has_no_args() for bound ↵Josh Schneier
methods.
2018-08-07Renamed django.utils.inspect.func_has_no_args() to method_has_no_args().Josh Schneier
2018-08-02Refs #29600 -- Updated django.utils.datetime_safe now that Python 2 is ↵Tim Graham
unsupported.
2018-08-01Fixed CVE-2018-14574 -- Fixed open redirect possibility in CommonMiddleware.Andreas Hug
2018-07-26Refs #29600 -- Removed datetime_safe usage in feedgenerator.Tim Graham
The only effect would be if items in Atom feeds had a published date year of < 1000 (ensuring those years are padded with leading zeros).
2018-07-20Fixed #29412 -- Stopped marking slugify() result as HTML safe.Claude Paroz
2018-07-19Fixed #29578 -- Made numberformat.format() honor forced l10n usage.Claude Paroz
Thanks Sassan Haradji for the report.
2018-07-18Removed duplicate words in various comments.Mariusz Felisiak
2018-07-09Fixed #29546 -- Deprecated django.utils.timezone.FixedOffset.Sergey Fedoseev
2018-07-09Simplified force_bytes().Sergey Fedoseev
2018-07-09Removed unneded str() calls prior to mark_safe(); simplified mark_safe().Sergey Fedoseev
2018-06-29Fixed #29525 -- Allowed is_safe_url()'s allowed_hosts arg to be a string.Przemysław Suliga
2018-06-28Fixed #29514 -- Reverted "Used datetime.timezone.utc instead of pytz.utc for ↵Tim Graham
better performance." This reverts commit 27ca5ce19f5f184018a61611c1bc319113b1d107 due to a regression.
2018-06-27Refs #29253 -- Fixed method_decorator() crash if decorator sets a new attribute.Chris Jerdonek
Regression in fdc936c9130cf4fb5d59869674b9a31cc79a7999.
2018-05-17Advanced deprecation warnings for Django 2.2.Tim Graham
2018-05-12Moved to_language() to django.utils.translation.Tim Graham
Follow up to 1b7d524cfa7b7834af26c99407af66be6813938d.
2018-05-12Consolidated duplicate to_locale() implementations.Tim Graham
Follow up to ac59ec8f1a34ea0e82bdb3c77422694e8016e0a7.
2018-05-12Aliased trans_null.to_locale() to trans_real.to_locale().Hasan Ramezani
The implementations have unintentionally diverged.
2018-05-10Replaced TOKEN_* constants by TokenType enums.Claude Paroz
Thanks Tim Graham for the review.