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: