feat(admin): Update the registration of the User model
This commit is contained in:
parent
0c54fd29ab
commit
39623a8802
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue