|
@@ -131,7 +131,10 @@ class SampleAntrag(Antrag):
|
|
|
"name": file.filename,
|
|
|
"created": file.created.strftime(date_format),
|
|
|
"type": file.type,
|
|
|
- "link": f"api/files/{file.id}",
|
|
|
+ "actions": [
|
|
|
+ "edit",
|
|
|
+ "delete",
|
|
|
+ ]
|
|
|
} for index, file in enumerate(antrag_files)
|
|
|
]
|
|
|
|
|
@@ -174,7 +177,6 @@ class SampleAntrag(Antrag):
|
|
|
"name": file.filename,
|
|
|
"created": file.created.strftime(date_format),
|
|
|
"signed": "Yes" if file.processed else "No",
|
|
|
- "link": f"api/files/{file.id}",
|
|
|
} for file in antrag_docs
|
|
|
]
|
|
|
|