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