from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin

from apps.users.models import User


@admin.register(User)
class UserAdmin(BaseUserAdmin):
    """Admin config for the custom User model."""
    list_display = ("email", "username", "is_staff", "is_active", "date_joined")
    search_fields = ("email", "username")