You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
358 B
Python
13 lines
358 B
Python
5 years ago
|
from django.contrib import admin
|
||
4 years ago
|
from django.contrib.auth.admin import UserAdmin as DjangoUserAdmin
|
||
5 years ago
|
from .models import User
|
||
4 years ago
|
from .forms import AdminUserCreationForm
|
||
|
|
||
|
|
||
|
class UserAdmin(DjangoUserAdmin):
|
||
|
add_form = AdminUserCreationForm
|
||
4 years ago
|
add_fieldsets = ((None, {"classes": ("wide",), "fields": ("username",),}),)
|
||
|
|
||
5 years ago
|
|
||
|
admin.site.register(User, UserAdmin)
|