Procházet zdrojové kódy

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

Jeremy Stretch před 1 rokem
rodič
revize
53ff85df21
1 změnil soubory, kde provedl 5 přidání a 0 odebrání
  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)