Browse files

Allowed more easily subclassing of BlockNode tags.

  • Loading branch information...
1 parent 114b70c commit b041850853188428ac3b843001603db8f8a69392 @mitar mitar committed with timgraham Dec 28, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/template/loader_tags.py
View
2 django/template/loader_tags.py
@@ -59,7 +59,7 @@ def render(self, context):
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)

0 comments on commit b041850

Please sign in to comment.