mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Refs #30803 -- Allowed comma separators for decimal fractions in parse_duration().
This commit is contained in:
parent
cab3661832
commit
42b23d1e79
4 changed files with 12 additions and 2 deletions
|
@ -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``
|
||||
===========================
|
||||
|
||||
|
|
|
@ -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
|
||||
~~~~~~~~~~
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue