Explorar o código

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

Thibaud Colas %!s(int64=2) %!d(string=hai) anos
pai
achega
8bea494a43
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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):