Add document thumbnail images; use django-suit theme for admin

This commit is contained in:
Eric Wong
2017-01-07 14:57:25 -08:00
parent 1711030cb5
commit bee0867a2a
3 changed files with 29 additions and 1 deletions

View File

@@ -44,6 +44,7 @@ if os.path.exists("/etc/paperless.conf"):
INSTALLED_APPS = [
'suit',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
@@ -60,6 +61,21 @@ INSTALLED_APPS = [
]
SUIT_CONFIG = {
'ADMIN_NAME': 'Paperless',
'SEARCH_URL': '',
'LIST_PER_PAGE': 100,
'HEADER_DATE_FORMAT': 'D m-d-Y',
'MENU': (
'sites',
{ 'app': 'documents',
'label': 'Paperless',
'icon': 'icon-file',
'models': ('Document', 'Tag', 'Correspondent', 'log')
},
)
}
MIDDLEWARE_CLASSES = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',