Skip to content

Commit

Permalink
Cleaned up WhatsappTemplate listing view
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzbrand committed Jul 30, 2024
1 parent 6e2922a commit 6c1228c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions home/wagtail_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,17 @@ class WhatsAppTemplateAdmin(SnippetViewSet):
"category",
"locale",
"status",
"quick_replies",
"example_values",
"submission_status",
)
list_filter = ("locale",)

search_fields = (
"name",
"category",
"message",
"locale",
)

index_view_class = CustomIndexViewWhatsAppTemplate

panels = [
Expand All @@ -274,13 +281,6 @@ class WhatsAppTemplateAdmin(SnippetViewSet):
),
]

search_fields = (
"name",
"category",
"message",
"locale",
)


class AssessmentAdmin(SnippetViewSet):
model = Assessment
Expand Down

0 comments on commit 6c1228c

Please sign in to comment.