summaryrefslogtreecommitdiff
path: root/docs/topics
diff options
context:
space:
mode:
authorGagaro <gagaro42@gmail.com>2015-11-25 12:17:59 +0100
committerTim Graham <timograham@gmail.com>2015-11-28 08:44:41 -0500
commit08e1c79f7ae574ed27a93e97a0a56c3fcba3aa68 (patch)
tree5e3c70e200cc7e64de4721be77b670e6809bf947 /docs/topics
parentb5ff75dab8f9ffaeaaddc027568cfc7a6d279a04 (diff)
[1.9.x] Fixed #25812 -- Restored the ability to use custom formats with the date template filter.
Backport of 34d88944f46d3e2734488fd0ca3c2c24c15a0264 from master
Diffstat (limited to 'docs/topics')
-rw-r--r--docs/topics/i18n/formatting.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/topics/i18n/formatting.txt b/docs/topics/i18n/formatting.txt
index 62e4cc9ede..8a96bd74a9 100644
--- a/docs/topics/i18n/formatting.txt
+++ b/docs/topics/i18n/formatting.txt
@@ -170,7 +170,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::