Commit 116bee7a authored by Leonidas Poulopoulos's avatar Leonidas Poulopoulos
Browse files

User monkeypatching cleanup. Removed unecessary admin file

parent 2a2ea58f
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User
from flowspy.monkey_patch.forms import UserCreationForm, UserChangeForm
class LongerUserNameUserAdmin(UserAdmin):
add_form = UserCreationForm
form = UserChangeForm
admin.site.unregister(User)
admin.site.register(User, LongerUserNameUserAdmin)
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment