No need for a specific context processor

This commit is contained in:
Yohan Boniface 2016-09-09 20:59:25 +02:00
parent 2437334940
commit 5e35a9799b
2 changed files with 2 additions and 6 deletions

View file

@ -6,7 +6,8 @@ from . import __version__
def settings(request):
return {
'UMAP_FEEDBACK_LINK': djsettings.UMAP_FEEDBACK_LINK,
'SITE_NAME': djsettings.SITE_NAME
'SITE_NAME': djsettings.SITE_NAME,
'ENABLE_ACCOUNT_LOGIN': djsettings.ENABLE_ACCOUNT_LOGIN,
}
@ -15,7 +16,3 @@ def version(request):
'UMAP_VERSION': __version__
}
def authentication(request):
return {
'ENABLE_ACCOUNT_LOGIN': settings.ENABLE_ACCOUNT_LOGIN
}

View file

@ -119,7 +119,6 @@ TEMPLATES = [
'social.apps.django_app.context_processors.login_redirect',
'umap.context_processors.settings',
'umap.context_processors.version',
'umap.context_processors.authentication',
)
}
},