from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User

from longerusername.forms import UserCreationForm, UserChangeForm

class LongerUserNameUserAdmin(UserAdmin):
    add_form = UserCreationForm
    form = UserChangeForm

admin.site.unregister(User)
admin.site.register(User, LongerUserNameUserAdmin)