Skip to content

Commit

Permalink
fix(generic): remove .html from template_name_suffix
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
gythaogg committed Dec 20, 2024
1 parent 6f28df6 commit 4728efe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis_core/generic/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4728efe

Please sign in to comment.