diff --git a/home/views.py b/home/views.py index ae6bc327..1cbe4b3d 100644 --- a/home/views.py +++ b/home/views.py @@ -59,7 +59,13 @@ class CustomIndexView(SpreadsheetExportMixin, IndexView): class CustomIndexViewAssessment(SpreadsheetExportMixinAssessment, IndexViewAssessment): - pass + def get_template_names(self): + return ["wagtailsnippets/snippets/home/assessment/index.html"] + + def get_context_data(self, **kwargs): + context = super().get_context_data(**kwargs) + context["model_opts"].verbose_name_plural = "CMS Forms" + return context class CustomIndexViewWhatsAppTemplate( diff --git a/home/wagtail_hooks.py b/home/wagtail_hooks.py index 73384a0d..ecd922d9 100644 --- a/home/wagtail_hooks.py +++ b/home/wagtail_hooks.py @@ -300,6 +300,7 @@ class WhatsAppTemplateAdmin(SnippetViewSet): class AssessmentAdmin(SnippetViewSet): + menu_label = "CMS Forms" model = Assessment add_to_admin_menu = True list_display = ("title", "slug", "version", "locale")