mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-12-03 23:14:08 +03:00
14 lines
310 B
Python
14 lines
310 B
Python
# -*- 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)
|