added filenames to the API #108

This commit is contained in:
jonaswinkler
2020-12-07 21:51:00 +01:00
parent 35c3d5c0b5
commit 87fa118de0
4 changed files with 67 additions and 21 deletions

View File

@@ -50,7 +50,12 @@ class DocumentTypeAdmin(admin.ModelAdmin):
class DocumentAdmin(admin.ModelAdmin):
search_fields = ("correspondent__name", "title", "content", "tags__name")
readonly_fields = ("added", "mime_type", "storage_type", "filename")
readonly_fields = (
"added",
"modified",
"mime_type",
"storage_type",
"filename")
list_display_links = ("title",)