From 53ff85df2123d0feed90db903c806d26cc4d1b8a Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Tue, 2 Apr 2024 15:48:40 -0400 Subject: [PATCH] Prevent the stock Django Group model from appearing in the admin UI (if enabled) --- netbox/users/admin.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 netbox/users/admin.py diff --git a/netbox/users/admin.py b/netbox/users/admin.py new file mode 100644 index 000000000..0fa7e0ca2 --- /dev/null +++ b/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)