Accounted for .sender in a few places

This commit is contained in:
Daniel Quinn
2016-03-04 09:14:50 +00:00
parent ba7878b9aa
commit 5d4587ef8b
7 changed files with 95 additions and 41 deletions

View File

@@ -45,9 +45,9 @@ class DocumentAdmin(admin.ModelAdmin):
"all": ("paperless.css",)
}
search_fields = ("sender__name", "title", "content")
list_display = ("created_", "sender", "title", "tags_", "document")
list_filter = ("tags", "sender", MonthListFilter)
search_fields = ("correspondent__name", "title", "content")
list_display = ("created_", "correspondent", "title", "tags_", "document")
list_filter = ("tags", "correspondent", MonthListFilter)
list_per_page = 25
def created_(self, obj):