From 994466155def462374a95d96aad2b65cd6837ef7 Mon Sep 17 00:00:00 2001 From: Gytha Ogg Date: Fri, 20 Dec 2024 09:56:48 +0100 Subject: [PATCH] fix(generic): remove .html from template_name_suffix In SelectMergeOrEnrich view, ".html" extension is removed from the template_name_suffix, to avoid `TemplateDoesNotExist` error as it tries to find templates ending with `_selectmergeorenrich.html.html` --- apis_core/generic/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apis_core/generic/views.py b/apis_core/generic/views.py index 2aa409bb7..d554b8da6 100644 --- a/apis_core/generic/views.py +++ b/apis_core/generic/views.py @@ -366,7 +366,7 @@ class SelectMergeOrEnrich(GenericModelMixin, PermissionRequiredMixin, FormView): external sources, if set up) and on form submit redirects to the Enrich view. """ - template_name_suffix = "_selectmergeorenrich.html" + template_name_suffix = "_selectmergeorenrich" permission_action_required = "create" form_class = GenericSelectMergeOrEnrichForm