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)