瀏覽代碼

Add list_export for Snippets

Thibaud Colas 1 年之前
父節點
當前提交
3163c11f5d
共有 1 個文件被更改,包括 1 次插入0 次删除
  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):