Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #2303 -- Fixed bug in [3269] with regard to True and False spec…

…ial-casing in template system

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3294 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit df4331f3e99572e1816576ae1563b452af67ce3a 1 parent 83c6fff
@adrianholovaty adrianholovaty authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/template/__init__.py
View
4 django/template/__init__.py
@@ -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:
Please sign in to comment.
Something went wrong with that request. Please try again.