fix: Unregisters Group from admin panel

Removes Group model from the Django admin interface to simplify admin
views and focus on custom registration logic. This cleanup aids in
preventing unnecessary admin clutter, ensuring the admin interface
aligns with project-specific needs.

Improves admin interface customization and usability.
This commit is contained in:
Kumi 2024-11-17 11:49:06 +01:00
parent 0817c9ceb0
commit fdaddc001b
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -1,9 +1,12 @@
from django.contrib import admin from django.contrib import admin
from django.contrib.auth.models import Group
from .models import UserRegistration from .models import UserRegistration
admin.site.site_header = "Synapse Registration Administration" admin.site.site_header = "Synapse Registration Administration"
admin.site.unregister(Group)
@admin.register(UserRegistration) @admin.register(UserRegistration)
class UserRegistrationAdmin(admin.ModelAdmin): class UserRegistrationAdmin(admin.ModelAdmin):