diff --git a/django/template/loader_tags.py b/django/template/loader_tags.py index a8e76a18445..f847ea123fa 100644 --- a/django/template/loader_tags.py +++ b/django/template/loader_tags.py @@ -125,7 +125,7 @@ def do_block(parser, token): if block_name in parser.__loaded_blocks: raise TemplateSyntaxError, "'%s' tag with name '%s' appears more than once" % (bits[0], block_name) parser.__loaded_blocks.append(block_name) - except AttributeError: # parser._loaded_blocks isn't a list yet + except AttributeError: # parser.__loaded_blocks isn't a list yet parser.__loaded_blocks = [block_name] nodelist = parser.parse(('endblock',)) parser.delete_first_token()