mirror of
https://github.com/Hopiu/django.git
synced 2026-05-14 10:33:09 +00:00
Allowed more easily subclassing of BlockNode tags.
This commit is contained in:
parent
114b70ccf8
commit
b041850853
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue