1
0
mirror of https://github.com/etesync/server synced 2024-11-22 08:48:07 +00:00
etesync-server/etebase_server/myauth/admin.py
2024-06-08 17:51:44 -04:00

22 lines
454 B
Python

from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as DjangoUserAdmin
from .forms import AdminUserCreationForm
from .models import User
class UserAdmin(DjangoUserAdmin):
add_form = AdminUserCreationForm
add_fieldsets = (
(
None,
{
"classes": ("wide",),
"fields": ("username",),
},
),
)
admin.site.register(User, UserAdmin)