Skip to content

HTTPS clone URL

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/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)
Please sign in to comment.
Something went wrong with that request. Please try again.