Add field 'added' to documents

This field indicates when the document was added to the database
This commit is contained in:
Erik Arvstedt
2018-04-26 11:58:05 +02:00
parent 52b32fddc9
commit 11db87fa11
4 changed files with 41 additions and 9 deletions

View File

@@ -125,7 +125,9 @@ class DocumentAdmin(CommonAdmin):
}
search_fields = ("correspondent__name", "title", "content", "tags__name")
list_display = ("title", "created", "thumbnail", "correspondent", "tags_")
readonly_fields = ("added",)
list_display = ("title", "created", "added", "thumbnail", "correspondent",
"tags_")
list_filter = ("tags", "correspondent", FinancialYearFilter,
MonthListFilter)