Fixed #2303 -- Fixed bug in [3269] with regard to True and False special-casing in template system

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3294 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-07-07 22:20:07 +00:00
parent 83c6fff22a
commit df4331f3e9
1 changed files with 2 additions and 2 deletions

View File

@ -615,9 +615,9 @@ def resolve_variable(path, context):
(The example assumes VARIABLE_ATTRIBUTE_SEPARATOR is '.')
"""
if path == 'False':
path = False
current = False
elif path == 'True':
path = True
current = True
elif path[0].isdigit():
number_type = '.' in path and float or int
try: