33 lines
657 B
Python
33 lines
657 B
Python
from django.contrib import admin
|
|
from unfold.admin import ModelAdmin # type: ignore
|
|
|
|
from core.apps.companies.models import CompanyModel
|
|
|
|
|
|
@admin.register(CompanyModel)
|
|
class CompanyAdmin(ModelAdmin):
|
|
list_display = (
|
|
"name",
|
|
"company_code",
|
|
"phone",
|
|
"email",
|
|
"iik_code",
|
|
"legal_address",
|
|
"real_address",
|
|
"created_at",
|
|
)
|
|
search_fields = (
|
|
"name",
|
|
"company_code",
|
|
"phone",
|
|
"email",
|
|
"iik_code",
|
|
"legal_address",
|
|
"real_address",
|
|
"created_at",
|
|
"updated_at"
|
|
)
|
|
list_display_links = (
|
|
"name",
|
|
)
|