2020-05-13 13:01:49 +00:00
|
|
|
from django.contrib import admin
|
2020-11-07 16:58:29 +00:00
|
|
|
from django.contrib.auth.admin import UserAdmin as DjangoUserAdmin
|
2020-05-13 13:01:49 +00:00
|
|
|
from .models import User
|
2020-11-07 16:58:29 +00:00
|
|
|
from .forms import AdminUserCreationForm
|
|
|
|
|
|
|
|
|
|
|
|
class UserAdmin(DjangoUserAdmin):
|
|
|
|
add_form = AdminUserCreationForm
|
2020-11-14 15:04:41 +00:00
|
|
|
add_fieldsets = ((None, {"classes": ("wide",), "fields": ("username",),}),)
|
|
|
|
|
2020-05-13 13:01:49 +00:00
|
|
|
|
|
|
|
admin.site.register(User, UserAdmin)
|