text: from django.contrib import admin
  from django.contrib.auth.models import Group
  from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
  
  
  from .forms import UserAdminCreationForm, UserAdminChangeForm
  from .models import User
  
  
  class UserAdmin(BaseUserAdmin):
      form = UserAdminChangeForm
      add_form = UserAdminCreationForm
  
      list_display = ('email', 'full_name', 'admin')
      list_filter = ('admin',)
      fieldsets = (
          (None, {'fields': ('email', 'full_name', 'password')}),
          ('Personal info', {'fields': ()}),
          ('Permissions', {'fields': ('admin',)}),
      )
  
      add_fieldsets = (
          (None, {
              'classes': ('wide',),
              'fields': ('email', 'full_name', 'password1', 'password2')}
          ),
      )
      search_fields = ('email',)
      ordering = ('email',)
      filter_horizontal = ()
  
  
  admin.site.register(User, UserAdmin)
  
  admin.site.unregister(Group)
  