kopia lustrzana https://github.com/wagtail/wagtail
Document that 'format' on Date(Time)Block must be one of the recognised DATE(TIME)_INPUT_FORMATS
rodzic
884eb631c7
commit
6d553ab396
|
@ -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
|
||||
~~~~~~~~~~~~~
|
||||
|
|
Ładowanie…
Reference in New Issue