소스 검색

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):