fix issue: hiding section when 'hide' is present in context
This commit is contained in:
parent
7d1ca83d23
commit
98af7a4693
|
@ -65,7 +65,7 @@ class TemplateMixin(metaclass=TemplateMixinMeta):
|
|||
if context:
|
||||
context_.update(context)
|
||||
|
||||
if context.get('hide'):
|
||||
if context_.get('hide'):
|
||||
return ''
|
||||
return render_to_string(self.template, context_)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user