mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
Make number of list items per page configurable
This commit is contained in:
@@ -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")
|
||||
|
@@ -61,10 +61,11 @@ INSTALLED_APPS = [
|
||||
|
||||
]
|
||||
|
||||
_list_per_page = int(os.getenv("PAPERLESS_LIST_PER_PAGE", 25))
|
||||
SUIT_CONFIG = {
|
||||
'ADMIN_NAME': 'Paperless',
|
||||
'SEARCH_URL': '',
|
||||
'LIST_PER_PAGE': 100,
|
||||
'LIST_PER_PAGE': _list_per_page,
|
||||
'HEADER_DATE_FORMAT': 'D m-d-Y',
|
||||
'MENU': (
|
||||
'sites',
|
||||
|
Reference in New Issue
Block a user