Fixed #25812 -- Restored the ability to use custom formats with the date template filter.

This commit is contained in:
Gagaro 2015-11-25 12:17:59 +01:00 committed by Tim Graham
parent ab33269b00
commit 34d88944f4
7 changed files with 19 additions and 6 deletions

View file

@ -164,7 +164,10 @@ the package where format files will exist, for instance::
]
Files are not placed directly in this directory, but in a directory named as
the locale, and must be named ``formats.py``.
the locale, and must be named ``formats.py``. Be careful not to put sensitive
information in these files as values inside can be exposed if you pass the
string to ``django.utils.formats.get_format()`` (used by the :tfilter:`date`
template filter).
To customize the English formats, a structure like this would be needed::