Explorar el Código

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

Thibaud Colas hace 2 años
padre
commit
8bea494a43
Se han modificado 1 ficheros con 1 adiciones y 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):