0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
wagtail/docs/advanced_topics
Bojan Mihelac 0f53afc5a6 Adds support for custom date and datetime formats (#2595)
It is possible to set default format for date/datetime inputs. This works together
with standard django localization.

    # django settings
    USE_I18N = True
    LANGUAGE_CODE = 'sl'

    # wagtail settings
    WAGTAIL_DATE_FORMAT = '%d.%m.%Y.'
    WAGTAIL_DATETIME_FORMAT = '%d.%m.%Y. %H:%M'

DateBlock, DateTimeBlock accepts additional keyword argument `format`.
2017-03-31 16:30:27 +01:00
..
api Reinstate underscore in fields param, as per 40842fe8bf (commitcomment-21183519) 2017-03-07 11:03:30 +00:00
customisation Added a submit_buttons block to login template 2017-02-11 22:58:53 +00:00
i18n Fix whitespace errors in docs 2016-11-28 13:41:35 +00:00
images Document get_rendition() 2017-02-21 22:48:20 +00:00
deploying.rst Remove references to Gondor.io in documentation. 2017-01-30 12:36:26 +00:00
index.rst API v2 docs (#2940) 2016-09-22 11:15:18 +01:00
jinja2.rst
performance.rst Link to the full Elasticsearch setup docs from the Performance page 2017-03-23 15:51:11 +01:00
privacy.rst Fix whitespace errors in docs 2016-11-28 13:41:35 +00:00
settings.rst Adds support for custom date and datetime formats (#2595) 2017-03-31 16:30:27 +01:00
testing.rst
third_party_tutorials.rst Mention Awesome Wagtail on "third-party tutorials" page (#3419) 2017-03-02 12:00:38 +00:00