瀏覽代碼

Prevent the stock Django Group model from appearing in the admin UI (if enabled)

Jeremy Stretch 1 年之前
父節點
當前提交
53ff85df21
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      netbox/users/admin.py

+ 5 - 0
netbox/users/admin.py

@@ -0,0 +1,5 @@
+from django.contrib import admin
+from django.contrib.auth.models import Group as DjangoGroup
+
+# Prevent the stock Django Group model from appearing in the admin UI (if enabled)
+admin.site.unregister(DjangoGroup)