K356/k356/app/utils/api/api_list.py
2024-09-27 18:09:38 +02:00

18 lines
322 B
Python

def header_for_table(model):
headers = model.objects.headers()
return [
{
"value": key,
**value,
}
for key, value in headers.items()
] + [
{
"text": "Actions",
"value": "actions",
"sortable": False,
},
]