from django.contrib import admin
from .models import UserPanelis

# Izmantojam vienkāršu ModelAdmin, jo UserAdmin prasa vārdus/uzvārdus
class UserPanelisAdmin(admin.ModelAdmin):
    # Rādām tikai to, kas tiešām ir datubāzē
    list_display = ['email', 'is_staff', 'is_active', 'is_superuser']
    list_filter = ['is_staff', 'is_active']
    search_fields = ['email']
    ordering = ['email']

admin.site.register(UserPanelis, UserPanelisAdmin)