Actually handle the change to using a Sender model

This commit is contained in:
Daniel Quinn
2016-01-15 02:02:47 +00:00
parent d1c811555c
commit 2e48036f92
2 changed files with 7 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ from .models import Sender, Document
class DocumentAdmin(admin.ModelAdmin):
search_fields = ("sender", "title", "content",)
search_fields = ("sender__name", "title", "content",)
list_display = ("edit", "created", "sender", "title", "pdf")
list_filter = ("created", "sender")
save_on_top = True