Sfoglia il codice sorgente

Disable header buttons for snippet models index

Thibaud Colas 1 anno fa
parent
commit
cd61adbd31
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      wagtail/snippets/views/snippets.py

+ 1 - 0
wagtail/snippets/views/snippets.py

@@ -78,6 +78,7 @@ class ModelIndexView(generic.IndexView):
     index_url_name = "wagtailsnippets:index"
     default_ordering = "name"
     _show_breadcrumbs = True
+    header_buttons = []
 
     def setup(self, request, *args, **kwargs):
         super().setup(request, *args, **kwargs)