
# tenants/admin.py
from django.contrib import admin
from .models import Tenants


@admin.register(Tenants)
class TenantsAdmin(admin.ModelAdmin):
    list_display = ("name", "parent_tenant", "created_at","tenant_id")
    search_fields = ("name", "description")
    list_filter = ("created_at",)
    ordering = ("name",)

