summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-12-24 23:24:23 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-12-29 21:59:07 +0100
commit5d5e1f5afa4b2c0b0a0ead37741ef7778187a48c (patch)
treef3fca6854ff39e55947441518be5dcefaf5fd47b /docs
parent641acf76e706dcff0932b0825f1acbde715cc2c4 (diff)
Removed support is_safe and needs_autoescape as function attributes.
Diffstat (limited to 'docs')
-rw-r--r--docs/howto/custom-template-tags.txt20
1 files changed, 0 insertions, 20 deletions
diff --git a/docs/howto/custom-template-tags.txt b/docs/howto/custom-template-tags.txt
index 70b6288bee..d57730c4fb 100644
--- a/docs/howto/custom-template-tags.txt
+++ b/docs/howto/custom-template-tags.txt
@@ -328,26 +328,6 @@ Template filter code falls into one of two situations:
handle the auto-escaping issues and return a safe string, the
``is_safe`` flag won't change anything either way.
-.. versionchanged:: 1.4
-
-``is_safe`` and ``needs_autoescape`` used to be attributes of the filter
-function; this syntax is deprecated.
-
-.. code-block:: python
-
- @register.filter
- def myfilter(value):
- return value
- myfilter.is_safe = True
-
-.. code-block:: python
-
- @register.filter
- def initial_letter_filter(text, autoescape=None):
- # ...
- return mark_safe(result)
- initial_letter_filter.needs_autoescape = True
-
.. _filters-timezones:
Filters and time zones