summaryrefslogtreecommitdiff
path: root/django/template/__init__.py
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-07-07 22:20:07 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-07-07 22:20:07 +0000
commitdf4331f3e99572e1816576ae1563b452af67ce3a (patch)
treef8b265628dddf1afcc3b56800e1a94e9fa9e1d95 /django/template/__init__.py
parent83c6fff22acfe3a7994105b798403f6a16208cfc (diff)
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
Diffstat (limited to 'django/template/__init__.py')
-rw-r--r--django/template/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/template/__init__.py b/django/template/__init__.py
index e8a4cfc744..a1d1d402d0 100644
--- a/django/template/__init__.py
+++ b/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: