Sfoglia il codice sorgente

Add a demo of ModelAdmin InspectView on most complex model (#345)

Thibaud Colas 2 anni fa
parent
commit
8bea494a43
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      bakerydemo/base/wagtail_hooks.py

+ 1 - 0
bakerydemo/base/wagtail_hooks.py

@@ -52,6 +52,7 @@ class PeopleModelAdmin(ModelAdmin):
     list_display = ('first_name', 'last_name', 'job_title', 'thumb_image')
     list_filter = ('job_title', )
     search_fields = ('first_name', 'last_name', 'job_title')
+    inspect_view_enabled = True
 
 
 class FooterTextAdmin(ModelAdmin):