Skip to content

Commit

Permalink
[1.3.X] Fixed #17618 - Documented that variable names in template mus…
Browse files Browse the repository at this point in the history
…t not start with an underscore; thanks guillemette and krzysiumed.

Backport of r17504 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@17505 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
timgraham committed Feb 11, 2012
1 parent 2646df4 commit f202387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/ref/templates/api.txt
Expand Up @@ -112,7 +112,7 @@ template::
"My name is Dolores."

Variable names must consist of any letter (A-Z), any digit (0-9), an underscore
or a dot.
(but they must not start with an underscore) or a dot.

Dots have a special meaning in template rendering. A dot in a variable name
signifies a **lookup**. Specifically, when the template system encounters a
Expand Down

0 comments on commit f202387

Please sign in to comment.