mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-21 15:14:45 +00:00
Document that 'format' on Date(Time)Block must be one of the recognised DATE(TIME)_INPUT_FORMATS
This commit is contained in:
parent
884eb631c7
commit
6d553ab396
1 changed files with 2 additions and 2 deletions
|
|
@ -160,7 +160,7 @@ DateBlock
|
|||
A date picker. The keyword arguments ``required``, ``help_text`` and ``format`` are accepted.
|
||||
|
||||
``format`` (default: None)
|
||||
Date format. If not specifed Wagtail will use ``WAGTAIL_DATE_FORMAT`` setting with fallback to '%Y-%m-%d'.
|
||||
Date format. This must be one of the recognised formats listed in the `DATE_INPUT_FORMATS <https://docs.djangoproject.com/en/1.10/ref/settings/#std:setting-DATE_INPUT_FORMATS>`_ setting. If not specifed Wagtail will use ``WAGTAIL_DATE_FORMAT`` setting with fallback to '%Y-%m-%d'.
|
||||
|
||||
TimeBlock
|
||||
~~~~~~~~~
|
||||
|
|
@ -177,7 +177,7 @@ DateTimeBlock
|
|||
A combined date / time picker. The keyword arguments ``required``, ``help_text`` and ``format`` are accepted.
|
||||
|
||||
``format`` (default: None)
|
||||
Date format. If not specifed Wagtail will use ``WAGTAIL_DATETIME_FORMAT`` setting with fallback to '%Y-%m-%d %H:%M'.
|
||||
Date format. This must be one of the recognised formats listed in the `DATETIME_INPUT_FORMATS <https://docs.djangoproject.com/en/1.10/ref/settings/#std:setting-DATETIME_INPUT_FORMATS>`_ setting. If not specifed Wagtail will use ``WAGTAIL_DATETIME_FORMAT`` setting with fallback to '%Y-%m-%d %H:%M'.
|
||||
|
||||
RichTextBlock
|
||||
~~~~~~~~~~~~~
|
||||
|
|
|
|||
Loading…
Reference in a new issue