From df4331f3e99572e1816576ae1563b452af67ce3a Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 7 Jul 2006 22:20:07 +0000 Subject: [PATCH] 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 --- django/template/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/template/__init__.py b/django/template/__init__.py index e8a4cfc7448..a1d1d402d03 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: