backoffice: consider all templates during direct rendering (#52934)

This commit is contained in:
Frédéric Péters 2021-04-11 21:37:35 +02:00
parent b5298bad06
commit 93b951e02a
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class Backoffice(compat.TemplateWithFallbackView):
if isinstance(body, template.QommonTemplateResponse):
body.add_media()
if body.is_django_native:
self.template_names = body.templates[0]
self.template_names = body.templates
context.update(body.context)
else:
body = template.render(body.templates, body.context)