initial commit
This commit is contained in:
24
core/apps/companies/admin/folders.py
Normal file
24
core/apps/companies/admin/folders.py
Normal file
@@ -0,0 +1,24 @@
|
||||
from django.contrib import admin
|
||||
from unfold.admin import ModelAdmin # type: ignore
|
||||
|
||||
from core.apps.companies.models import CompanyFolderModel
|
||||
|
||||
|
||||
@admin.register(CompanyFolderModel)
|
||||
class FolderAdmin(ModelAdmin):
|
||||
list_display = (
|
||||
"name",
|
||||
"company",
|
||||
"created_at"
|
||||
)
|
||||
|
||||
search_fields = (
|
||||
"name",
|
||||
"company",
|
||||
"created_at",
|
||||
"updated_at",
|
||||
)
|
||||
|
||||
list_display_links = (
|
||||
"name",
|
||||
)
|
||||
Reference in New Issue
Block a user