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:
parent
ff4f24958d
commit
a619b2b871
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue