From b041850853188428ac3b843001603db8f8a69392 Mon Sep 17 00:00:00 2001 From: Mitar Date: Sat, 28 Dec 2013 12:18:34 +0100 Subject: [PATCH] Allowed more easily subclassing of BlockNode tags. --- django/template/loader_tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/template/loader_tags.py b/django/template/loader_tags.py index e5e79725d2..77508a7663 100644 --- a/django/template/loader_tags.py +++ b/django/template/loader_tags.py @@ -59,7 +59,7 @@ class BlockNode(Node): if block is None: block = self # Create new block so we can store context without thread-safety issues. - block = BlockNode(block.name, block.nodelist) + block = type(self)(block.name, block.nodelist) block.context = context context['block'] = block result = block.nodelist.render(context)