Refs #30803 -- Allowed comma separators for decimal fractions in parse_duration().

This commit is contained in:
Farhaan Bukhsh 2019-11-27 08:14:00 +01:00 committed by Mariusz Felisiak
parent cab3661832
commit 42b23d1e79
4 changed files with 12 additions and 2 deletions

View file

@ -154,6 +154,11 @@ The functions defined in this module share the following properties:
8601 (e.g. ``P4DT1H15M20S`` which is equivalent to ``4 1:15:20``) or
PostgreSQL's day-time interval format (e.g. ``3 days 04:05:06``).
.. versionchanged:: 3.1
Support for comma separators for decimal fractions in the ISO 8601
format was added.
``django.utils.decorators``
===========================

View file

@ -256,6 +256,9 @@ Utilities
* :func:`~django.utils.encoding.filepath_to_uri` now supports
:class:`pathlib.Path`.
* :func:`~django.utils.dateparse.parse_duration` now supports comma separators
for decimal fractions in the ISO 8601 format.
Validators
~~~~~~~~~~