Refs #1400 - Reverted r3269. Template variable evalution should follow Python norms.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3680 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2006-08-30 00:54:08 +00:00
parent ff4f24958d
commit a619b2b871
1 changed files with 1 additions and 5 deletions

View File

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