feat(admin): Update the registration of the User model

This commit is contained in:
Tom Hubrecht 2024-09-23 18:16:02 +02:00
parent 0c54fd29ab
commit 39623a8802
Signed by: thubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc

View file

@ -1,6 +1,9 @@
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from dgsi.models import User
from unfold.admin import ModelAdmin
admin.site.register(User, UserAdmin)
@admin.register(User)
class UserAdmin(BaseUserAdmin, ModelAdmin):
pass