backoffice: consider all templates during direct rendering (#52934)
This commit is contained in:
parent
b5298bad06
commit
93b951e02a
|
@ -37,7 +37,7 @@ class Backoffice(compat.TemplateWithFallbackView):
|
||||||
if isinstance(body, template.QommonTemplateResponse):
|
if isinstance(body, template.QommonTemplateResponse):
|
||||||
body.add_media()
|
body.add_media()
|
||||||
if body.is_django_native:
|
if body.is_django_native:
|
||||||
self.template_names = body.templates[0]
|
self.template_names = body.templates
|
||||||
context.update(body.context)
|
context.update(body.context)
|
||||||
else:
|
else:
|
||||||
body = template.render(body.templates, body.context)
|
body = template.render(body.templates, body.context)
|
||||||
|
|
Loading…
Reference in New Issue