summaryrefslogtreecommitdiff
path: root/django/utils
AgeCommit message (Collapse)Author
2019-05-29[2.2.x] Fixed #30523 -- Fixed updating file modification times on seen files ↵Tom Forbes
in auto-reloader when using StatReloader. Previously we updated the file mtimes if the file has not been seen before - i.e on the first iteration of the loop. If the mtime has been changed we triggered the notify_file_changed() method which in all cases except the translations will result in the process being terminated. To be strictly correct we need to update the mtime for either branch of the conditional. Regression in 6754bffa2b2df15a741008aa611c1bb0e8dff22b. Backport of 480492fe70b0bb7df61c00854dc8535c9d21ba64 from master
2019-05-29[2.2.x] Fixed #30516 -- Fixed crash of autoreloader when re-raising ↵Tom Forbes
exceptions with custom signature. Regression in c8720e7696ca41f3262d5369365cc1bd72a216ca. Backport of 0344565179527d80990e2247e3be7c04aa8c43c8 from master
2019-05-28[2.2.x] Fixed #30479 -- Fixed detecting changes in manage.py by autoreloader ↵Tom Forbes
when using StatReloader. Regression in c8720e7696ca41f3262d5369365cc1bd72a216ca. Backport of b2790f74d4f38c8b297b7c1cef6875d2378f6fa6 from master
2019-04-29[2.2.x] Fixed #30323 -- Fixed detecting changes by autoreloader when using ↵Tom Forbes
StatReloader. Backport of 6754bffa2b2df15a741008aa611c1bb0e8dff22b from master
2019-04-29[2.2.x] Refs #30323 -- Prevented crash of autoreloader when ↵Tom Forbes
get_resolver().urlconf_module raising an exception. Backport of 0636d4d2aa6e4469198fdf662225ad862e60c5e3 from master
2019-04-26[2.2.x] Fixed #30361 -- Increased the default timeout of watchman client to ↵Jacob Green
5 seconds and made it customizable. Made the default timeout of watchman client customizable via DJANGO_WATCHMAN_TIMEOUT environment variable. Backport of ed3c59097a01ed3f32f8a8bed95307fb5c181251 from master
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.