27 lines
503 B
Python
27 lines
503 B
Python
from django.contrib import admin
|
|
from unfold.admin import ModelAdmin # type: ignore
|
|
|
|
from core.apps.contracts.models import ContractModel
|
|
|
|
|
|
@admin.register(ContractModel)
|
|
class ContractAdmin(ModelAdmin):
|
|
list_display = (
|
|
"name",
|
|
"identifier",
|
|
"file_permissions",
|
|
"created_at",
|
|
)
|
|
|
|
search_fields = (
|
|
"name",
|
|
"identifier",
|
|
"owners",
|
|
"created_at",
|
|
"updated_at",
|
|
)
|
|
|
|
list_display_links = (
|
|
"name",
|
|
)
|