28 lines
521 B
Python
28 lines
521 B
Python
from django.contrib import admin
|
|
from unfold.admin import ModelAdmin # type: ignore
|
|
|
|
from core.apps.companies.models import CompanyAccountModel
|
|
|
|
|
|
@admin.register(CompanyAccountModel)
|
|
class DirectorAdmin(ModelAdmin):
|
|
list_display = (
|
|
"user_name",
|
|
"role",
|
|
"company",
|
|
"created_at",
|
|
)
|
|
|
|
list_display_links = (
|
|
"user_name",
|
|
"role",
|
|
)
|
|
|
|
search_fields = (
|
|
"user",
|
|
"role",
|
|
"company",
|
|
"created_at",
|
|
"updated_at",
|
|
)
|