1
0
mirror of https://github.com/etesync/server synced 2024-12-28 18:28:07 +00:00
etesync-server/etebase_server/myauth/admin.py

22 lines
454 B
Python
Raw Normal View History

from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as DjangoUserAdmin
2024-06-08 21:51:44 +00:00
from .forms import AdminUserCreationForm
2024-06-08 21:51:44 +00:00
from .models import User
class UserAdmin(DjangoUserAdmin):
add_form = AdminUserCreationForm
2024-06-08 21:51:44 +00:00
add_fieldsets = (
(
None,
{
"classes": ("wide",),
"fields": ("username",),
},
),
)
admin.site.register(User, UserAdmin)