Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Switching to autoescape is not a change in syntax.

  • Loading branch information...
commit 87e8dfaa47a07662351a8a8dc9a15c6afef87b88 1 parent 3ded2ae
Carl Meyer carljm authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 django/template/defaulttags.py
6 django/template/defaulttags.py
View
@@ -565,7 +565,8 @@ def cycle(parser, token, escape=False):
"""
if not escape:
warnings.warn(
- "'The syntax for the `cycle` template tag is changing. Load it "
+ "'The `cycle` template tag is changing to escape its arguments; "
+ "the non-autoescaping version is deprecated. Load it "
"from the `future` tag library to start using the new behavior.",
PendingDeprecationWarning, stacklevel=2)
@@ -707,7 +708,8 @@ def firstof(parser, token, escape=False):
"""
if not escape:
warnings.warn(
- "'The syntax for the `firstof` template tag is changing. Load it "
+ "'The `firstof` template tag is changing to escape its arguments; "
+ "the non-autoescaping version is deprecated. Load it "
"from the `future` tag library to start using the new behavior.",
PendingDeprecationWarning, stacklevel=2)
Please sign in to comment.
Something went wrong with that request. Please try again.