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:
parent
83c6fff22a
commit
df4331f3e9
|
@ -615,9 +615,9 @@ def resolve_variable(path, context):
|
||||||
(The example assumes VARIABLE_ATTRIBUTE_SEPARATOR is '.')
|
(The example assumes VARIABLE_ATTRIBUTE_SEPARATOR is '.')
|
||||||
"""
|
"""
|
||||||
if path == 'False':
|
if path == 'False':
|
||||||
path = False
|
current = False
|
||||||
elif path == 'True':
|
elif path == 'True':
|
||||||
path = True
|
current = True
|
||||||
elif path[0].isdigit():
|
elif path[0].isdigit():
|
||||||
number_type = '.' in path and float or int
|
number_type = '.' in path and float or int
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue