mirror of
https://github.com/etesync/server
synced 2024-11-19 07:18:08 +00:00
d8e5c37db1
Merge #65
13 lines
358 B
Python
13 lines
358 B
Python
from django.contrib import admin
|
|
from django.contrib.auth.admin import UserAdmin as DjangoUserAdmin
|
|
from .models import User
|
|
from .forms import AdminUserCreationForm
|
|
|
|
|
|
class UserAdmin(DjangoUserAdmin):
|
|
add_form = AdminUserCreationForm
|
|
add_fieldsets = ((None, {"classes": ("wide",), "fields": ("username",),}),)
|
|
|
|
|
|
admin.site.register(User, UserAdmin)
|