From 5e35a9799bb377bbf9bffb09eb972fd8ed4c94c3 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 9 Sep 2016 20:59:25 +0200 Subject: [PATCH] No need for a specific context processor --- umap/context_processors.py | 7 ++----- umap/settings/base.py | 1 - 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/umap/context_processors.py b/umap/context_processors.py index c6bdf6dc..f50e6212 100644 --- a/umap/context_processors.py +++ b/umap/context_processors.py @@ -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 - } diff --git a/umap/settings/base.py b/umap/settings/base.py index a72d9f45..b7faa0df 100644 --- a/umap/settings/base.py +++ b/umap/settings/base.py @@ -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', ) } },