From a619b2b8715f775f0090a3f47f0d327620b9ed65 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Wed, 30 Aug 2006 00:54:08 +0000 Subject: [PATCH] Refs #1400 - Reverted r3269. Template variable evalution should follow Python norms. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3680 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/template/__init__.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/django/template/__init__.py b/django/template/__init__.py index ba7ca4c02b..4cf3304eb6 100644 --- a/django/template/__init__.py +++ b/django/template/__init__.py @@ -614,11 +614,7 @@ def resolve_variable(path, context): (The example assumes VARIABLE_ATTRIBUTE_SEPARATOR is '.') """ - if path == 'False': - current = False - elif path == 'True': - current = True - elif path[0].isdigit(): + if path[0].isdigit(): number_type = '.' in path and float or int try: current = number_type(path)