Kaynağa Gözat

Add list_export for Snippets

Thibaud Colas 1 yıl önce
ebeveyn
işleme
3163c11f5d
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  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):