Kaydet (Commit) df4331f3 authored tarafından Adrian Holovaty's avatar Adrian Holovaty

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
üst 83c6fff2
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment