Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allowed more easily subclassing of BlockNode tags.

  • Loading branch information...
commit b041850853188428ac3b843001603db8f8a69392 1 parent 114b70c
@mitar mitar authored timgraham committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/template/
2  django/template/
@@ -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.nodelist)
+ block = type(self)(, block.nodelist)
block.context = context
context['block'] = block
result = block.nodelist.render(context)
Please sign in to comment.
Something went wrong with that request. Please try again.