initial commit
This commit is contained in:
32
core/apps/companies/admin/companies.py
Normal file
32
core/apps/companies/admin/companies.py
Normal file
@@ -0,0 +1,32 @@
|
||||
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",
|
||||
)
|
||||
Reference in New Issue
Block a user