Make number of list items per page configurable

This commit is contained in:
Eric Wong
2017-01-07 23:15:59 -08:00
parent e6526d3fd4
commit 3c08fa9b33
3 changed files with 5 additions and 2 deletions

View File

@@ -56,7 +56,6 @@ class DocumentAdmin(admin.ModelAdmin):
list_display = ("created", "title", "thumbnail", "correspondent", "tags_")
list_filter = ("tags", "correspondent", MonthListFilter)
ordering = ["-created", "correspondent"]
list_per_page = 25
def created_(self, obj):
return obj.created.date().strftime("%Y-%m-%d")