Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fixing some style bits for my own OCD

Daniel Quinn92e178cc597d
diff --git a/src/documents/admin.py b/src/documents/admin.py
index d59cec0bd..e21abfb87 100644
--- a/src/documents/admin.py
+++ b/src/documents/admin.py
@@ -62,11 +62,12 @@ class DocumentAdmin(admin.ModelAdmin):
def thumbnail(self, obj):
png_img = self._html_tag(
- "img",
- src="/fetch/thumb/{}".format(obj.id),
- width=275,
- alt="thumbnail",
- title=obj.file_name)
+ "img",
+ src="/fetch/thumb/{}".format(obj.id),
+ width=275,
+ alt="thumbnail",
+ title=obj.file_name
+ )
return self._html_tag("a", png_img, href=obj.download_url)
thumbnail.allow_tags = True
diff --git a/src/paperless/settings.py b/src/paperless/settings.py
index d9352d7bb..e60eaf32b 100644
--- a/src/paperless/settings.py
+++ b/src/paperless/settings.py
@@ -61,18 +61,18 @@ INSTALLED_APPS = [
]
-_list_per_page = int(os.getenv("PAPERLESS_LIST_PER_PAGE", 25))
SUIT_CONFIG = {
'ADMIN_NAME': 'Paperless',
'SEARCH_URL': '',
- 'LIST_PER_PAGE': _list_per_page,
+ 'LIST_PER_PAGE': int(os.getenv("PAPERLESS_LIST_PER_PAGE", 25)),
'HEADER_DATE_FORMAT': 'D m-d-Y',
'MENU': (
'sites',
- { 'app': 'documents',
- 'label': 'Paperless',
- 'icon': 'icon-file',
- 'models': ('Document', 'Tag', 'Correspondent', 'log')
+ {
+ 'app': 'documents',
+ 'label': 'Paperless',
+ 'icon': 'icon-file',
+ 'models': ('Document', 'Tag', 'Correspondent', 'log')
},
)
}