diff --git a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/users/admin.py b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/users/admin.py index d91bb913..80e8e792 100644 --- a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/users/admin.py +++ b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/users/admin.py @@ -1,11 +1,12 @@ # -*- 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(admin.ModelAdmin): +class UserAdmin(AuthUserAdmin): create_form_class = UserCreationForm update_form_class = UserChangeForm