Browse Source

Enable inspect view for CountryModelViewSet

Sage Abdullah 1 năm trước cách đây
mục cha
commit
5d00e7111a
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      bakerydemo/breads/wagtail_hooks.py

+ 1 - 0
bakerydemo/breads/wagtail_hooks.py

@@ -42,6 +42,7 @@ class CountryModelViewSet(ModelViewSet):
     ordering = ("title",)
     search_fields = ("title",)
     icon = "globe"
+    inspect_view_enabled = True
 
     panels = [
         FieldPanel("title"),