Update context_processors.py
This commit is contained in:
parent
e5b0c90aca
commit
541296015d
@ -6,12 +6,16 @@ from paperless.config import GeneralConfig
|
|||||||
def settings(request):
|
def settings(request):
|
||||||
general_config = GeneralConfig()
|
general_config = GeneralConfig()
|
||||||
|
|
||||||
app_title = django_settings.APP_TITLE
|
app_title = (
|
||||||
if general_config.app_title is not None and len(general_config.app_title) > 0:
|
django_settings.APP_TITLE
|
||||||
app_title = general_config.app_title
|
if general_config.app_title is None or len(general_config.app_title) == 0
|
||||||
app_logo = django_settings.APP_LOGO
|
else general_config.app_title
|
||||||
if general_config.app_logo is not None and len(general_config.app_logo) > 0:
|
)
|
||||||
app_logo = general_config.app_logo
|
app_logo = (
|
||||||
|
django_settings.APP_LOGO
|
||||||
|
if general_config.app_logo is None or len(general_config.app_logo) == 0
|
||||||
|
else general_config.app_logo
|
||||||
|
)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"EMAIL_ENABLED": django_settings.EMAIL_HOST != "localhost"
|
"EMAIL_ENABLED": django_settings.EMAIL_HOST != "localhost"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user