summaryrefslogtreecommitdiff
path: root/docs
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:38:45 -0500
commit34d88944f46d3e2734488fd0ca3c2c24c15a0264 (patch)
tree2d43cdb45ba4f863d05a7f724e8bdf936636f664 /docs
parentab33269b00858de7c37196a1ea044ce2080fd852 (diff)
Fixed #25812 -- Restored the ability to use custom formats with the date template filter.
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/1.8.8.txt4
-rw-r--r--docs/topics/i18n/formatting.txt5
2 files changed, 8 insertions, 1 deletions
diff --git a/docs/releases/1.8.8.txt b/docs/releases/1.8.8.txt
index 1a28efe167..94cda25ba2 100644
--- a/docs/releases/1.8.8.txt
+++ b/docs/releases/1.8.8.txt
@@ -14,3 +14,7 @@ Bugfixes
* Corrected ``__len`` query lookup on ``ArrayField`` for empty arrays
(:ticket:`25772`).
+
+* Restored the ability to use custom formats from ``formats.py`` with
+ ``django.utils.formats.get_format()`` and the ``date`` template filter
+ (:ticket:`25812`).
diff --git a/docs/topics/i18n/formatting.txt b/docs/topics/i18n/formatting.txt
index 8f04d65c38..1b7647d1d6 100644
--- a/docs/topics/i18n/formatting.txt
+++ b/docs/topics/i18n/formatting.txt
@@ -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::