浏览代码

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

Thibaud Colas 2 年之前
父节点
当前提交
8bea494a43
共有 1 个文件被更改,包括 1 次插入0 次删除
  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):