cookiecutter-django/{{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/users/admin.py
2013-12-17 16:27:18 +01:00

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)