소스 검색

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)