12 lines
355 B
Python
12 lines
355 B
Python
from django.contrib import admin
|
|
from django.contrib.auth.admin import UserAdmin
|
|
|
|
from .forms import CustomUserCreationForm, CustomUserChangeForm
|
|
from .models import CustomUser
|
|
|
|
class CustomUserAdmin(UserAdmin):
|
|
add_form = CustomUserCreationForm
|
|
form = CustomUserChangeForm
|
|
model = CustomUser
|
|
|
|
admin.site.register(CustomUser, CustomUserAdmin)
|