0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Changed a documentation example that wasn't wrong to stop complaints.

Fixed #7544.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7811 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2008-07-01 02:17:24 +00:00
parent 8cb128e57c
commit a75de3f342

View File

@ -477,11 +477,11 @@ escaped when the template is written.
This means you would write ::
{{ data|default:"3 > 2" }}
{{ data|default:"3 < 2" }}
...rather than ::
{{ data|default:"3 > 2" }} <-- Bad! Don't do this.
{{ data|default:"3 < 2" }} <-- Bad! Don't do this.
This doesn't affect what happens to data coming from the variable itself.
The variable's contents are still automatically escaped, if necessary, because