Browse Source

Add list_export for Snippets

Thibaud Colas 1 year ago
parent
commit
3163c11f5d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      bakerydemo/base/wagtail_hooks.py

+ 1 - 0
bakerydemo/base/wagtail_hooks.py

@@ -55,6 +55,7 @@ class PersonViewSet(SnippetViewSet):
     list_filter = {
         "job_title": ["icontains"],
     }
+    list_export = ("first_name", "last_name", "job_title")
 
 
 class FooterTextViewSet(SnippetViewSet):