old_contents: # -*- coding: utf-8 -*-
  from django.contrib import admin
  from django.contrib.auth.forms import UserCreationForm, UserChangeForm
  
  from .models import User
  
  
  class UserAdmin(admin.ModelAdmin):
      create_form_class = UserCreationForm
      update_form_class = UserChangeForm
  
  
  admin.site.register(User, UserAdmin)
  
new_contents: # -*- coding: utf-8 -*-
  from django.contrib import admin
  from django.contrib.auth.forms import UserCreationForm, UserChangeForm
  from django.contrib.auth.admin import UserAdmin as AuthUserAdmin
  
  from .models import User
  
  
  class UserAdmin(AuthUserAdmin):
      create_form_class = UserCreationForm
      update_form_class = UserChangeForm
  
  
  admin.site.register(User, UserAdmin)
  
subject: use proper UserAdmin auth form