From 93b951e02a3f5ad4b20e21b9954d36ed4ca5b3d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 11 Apr 2021 21:37:35 +0200 Subject: [PATCH] backoffice: consider all templates during direct rendering (#52934) --- wcs/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcs/views.py b/wcs/views.py index 8c9ed2c46..efac6bc30 100644 --- a/wcs/views.py +++ b/wcs/views.py @@ -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)