summaryrefslogtreecommitdiff
path: root/django/utils
AgeCommit message (Collapse)Author
2020-03-31Fixed #30864 -- Doc'd classproperty decorator.Deep Sukhwani
2020-03-18Fixed #31224 -- Added support for asynchronous views and middleware.Andrew Godwin
This implements support for asynchronous views, asynchronous tests, asynchronous middleware, and an asynchronous test client.
2020-03-11Fixed typo in django/utils/crypto.py.Mariusz Felisiak
2020-03-11Fixed #31359 -- Deprecated get_random_string() calls without an explicit length.Claude Paroz
2020-03-10Fixed #30439 -- Added support for different plural forms for a language.Claude Paroz
Thanks to Michal Čihař for review.
2020-03-05Fixed #31327 -- Deprecated providing_args argument for Signal.Jon Dufresne
2020-02-26Fixed #28280 -- Prevented numberformat.format() from formatting large/tiny ↵Hasan Ramezani
floats in scientific notation.
2020-02-18Refs #26601 -- Deprecated passing None as get_response arg to middleware ↵Claude Paroz
classes. This is the new contract since middleware refactoring in Django 1.10. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-01-27Refs #27468 -- Added algorithm parameter to django.utils.crypto.salted_hmac().Claude Paroz
2020-01-16Fixed #30752 -- Allowed using ExceptionReporter subclasses in error reports.Pavel Lysak
2020-01-15Fixed obsolete comment in django.utils.crypto.salted_hmac().Mariusz Felisiak
Obsolete since 13864703bc1d5dd4dac63c96c6a4b42a392bc57f.
2019-12-30Fixed #30892 -- Fixed slugify() and admin's URLify.js for "İ".Sjbrgsn
Thanks Luis Nell for the implementation idea and very detailed report. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2019-12-27Fixed typo in django/utils/termcolors.py docstring.leollon
2019-12-18Fixed #30585 -- Added {% translate %} and {% blocktranslate %} template tags.Mike Hansen
2019-12-06Fixed outdated import in django/utils/safestring.py.Baptiste Mispelon
The backported version of functools.wraps was removed in 13864703bc1d5dd4dac63c96c6a4b42a392bc57f.
2019-12-03Fixed #31056 -- Allowed disabling async-unsafe check with an environment ↵Andrew Godwin
variable.
2019-11-27Fixed #30803 -- Allowed comma separators for milliseconds in ↵Farhaan Bukhsh
django.utils.dateparse functions. Co-Authored-By: Ben Wilber <benwilber@gmail.com>
2019-11-27Refs #30803 -- Allowed comma separators for decimal fractions in ↵Farhaan Bukhsh
parse_duration().
2019-11-25Removed unused unencoded_ampersands_re regex.Baptiste Mispelon
Unused since 8b81dee60c1533e714a310fa5c3907356042a64c.
2019-11-22Fixed #9762 -- Made DateFormat.r() locale-independent.Baptiste Mispelon
Thanks to Antonio Melé for the original report all those years ago and to all the contributors who helped along the way.
2019-11-22Refs #26281 -- Added a helpful error message for an invalid "r" specifier to ↵Baptiste Mispelon
dateformat.format().
2019-11-18Fixed #30989 -- Removed unimplemented B time format.Baptiste Mispelon
It's never been documented and has always raised a NotImplementedError.
2019-11-18Simplified DateFormat.W() and z().Baptiste Mispelon
2019-11-18Fixed #30990 -- Fixed example output in 'z' date format docs.Baptiste Mispelon
2019-10-30Refs #28428 -- Made filepath_to_uri() support pathlib.Path.Hasan Ramezani
2019-10-29Fixed #30899 -- Lazily compiled import time regular expressions.Hasan Ramezani
2019-10-29Refs #30899 -- Made _lazy_re_compile() support bytes.Hasan Ramezani
2019-10-29Refs #30899 -- Moved _lazy_re_compile() to the django.utils.regex_helper.Hasan Ramezani
2019-10-28Fixed #30918 -- Made timesince()/timeuntil() respect custom time strings for ↵Hasan Ramezani
future and the same datetimes.
2019-10-21Fixed #30876 -- Moved classproperty() decorator to the django.utils.functional.André Ericson
2019-10-10Fixed #23755 -- Added support for multiple field names in the no-cache ↵Flavio Curella
Cache-Control directive to patch_cache_control(). https://tools.ietf.org/html/rfc7234#section-5.2.2.2
2019-10-10Fixed #30812 -- Made ConditionalGetMiddleware set ETag only for responses ↵Viktor Lomakin
with non-empty content.
2019-09-30Fixed #28690 -- Fixed handling of two-digit years in parse_http_date().Ad Timmering
Due to RFC7231 ayear that appears to be more than 50 years in the future are interpreted as representing the past.
2019-09-10Advanced deprecation warnings for Django 3.1.Mariusz Felisiak
2019-09-10Refs #29546 -- Removed django.utils.timezone.FixedOffset per deprecation ↵Mariusz Felisiak
timeline.
2019-09-04Fixed #29714 -- Allowed using ExceptionReporter subclass with AdminEmailHandler.Nasir Hussain
2019-09-02Fixed #30747 -- Renamed is_safe_url() to url_has_allowed_host_and_scheme().Carlton Gibson
2019-08-28Adjusted subprocess.run() calls to use arg list, rather than string. Jon Dufresne
The Python docs recommend passing a sequence to subprocess.run() when possible. Doing so allows for automatic escaping and quoting of arguments. https://docs.python.org/3/library/subprocess.html#frequently-used-arguments > args is required for all calls and should be a string, or a sequence > of program arguments. Providing a sequence of arguments is generally > preferred, as it allows the module to take care of any required > escaping and quoting of arguments (e.g. to permit spaces in file > names). Also removed `shell=True` where unnecessary.
2019-08-28Refs #27795 -- Removed an unnecessary force_bytes() call in uri_to_iri().Jon Dufresne
The value returned from urllib.parse.quote() is always a string, so can safely call .encode().
2019-08-23Replaced subprocess commands by run() wherever possible.Claude Paroz
2019-08-16Fixed #30701 -- Updated patch_vary_headers() to handle an asterisk according ↵Adnan Umer
to RFC 7231.
2019-08-13Refs #30461 -- Added django.utils._os.to_path().Claude Paroz
2019-08-11Fixed #30677 -- Improved error message for urlencode() and Client when None ↵swatantra
is passed as data.
2019-08-01Removed unneeded ValueError catching in django.utils.text._replace_entity().Jon Dufresne
The html.entities.name2codepoint dict contains only valid Unicode codepoints. Either the key exists and chr() will succeed or the key does not exist.
2019-08-01Fixed CVE-2019-14235 -- Fixed potential memory exhaustion in ↵Florian Apolloner
django.utils.encoding.uri_to_iri(). Thanks to Guido Vranken for initial report.
2019-08-01Fixed CVE-2019-14233 -- Prevented excessive HTMLParser recursion in ↵Florian Apolloner
strip_tags() when handling incomplete HTML entities. Thanks to Guido Vranken for initial report.
2019-08-01Fixed CVE-2019-14232 -- Adjusted regex to avoid backtracking issues when ↵Florian Apolloner
truncating HTML. Thanks to Guido Vranken for initial report.
2019-07-31Fixed #30160 -- Added support for LZMA and XZ templates to ↵Nick Pope
startapp/startproject management commands.
2019-07-31Refs #30160 -- Simplified archive extension map and added other aliases.Nick Pope
2019-07-30Refs #30160 -- Made destination path a required argument of extract().Nick Pope