1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #11385 -- Made forms.DateTimeField accept ISO 8601 date inputs.

Thanks José Padilla for the initial patch, and Carlton Gibson for the
review.
This commit is contained in:
Claude Paroz
2019-10-09 12:08:50 +02:00
committed by Mariusz Felisiak
parent b23fb2c819
commit 1487f16f2d
6 changed files with 66 additions and 18 deletions

View File

@@ -179,6 +179,10 @@ Forms
to access model instances. See :ref:`iterating-relationship-choices` for
details.
* :class:`django.forms.DateTimeField` now accepts dates in a subset of ISO 8601
datetime formats, including optional timezone (e.g. ``2019-10-10T06:47``,
``2019-10-10T06:47:23+04:00``, or ``2019-10-10T06:47:23Z``).
Generic Views
~~~~~~~~~~~~~