22 lines
394 B
Python
22 lines
394 B
Python
def header_for_table(model):
|
|
|
|
headers = model.objects.headers()
|
|
|
|
return [
|
|
{
|
|
"text": value,
|
|
"value": key,
|
|
}
|
|
for key, value in headers.items()
|
|
] + [
|
|
{
|
|
"text": "Actions",
|
|
"value": "actions",
|
|
"sortable": False,
|
|
},
|
|
]
|
|
|
|
|
|
def encrypted_fields(model):
|
|
return model.Encryption.fields
|