From 7fa87edda7c03e539318addbe632cbf15b5d4a76 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 5 Sep 2021 19:58:21 +0200 Subject: [PATCH] refactor --- InvenTree/InvenTree/settings.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/InvenTree/InvenTree/settings.py b/InvenTree/InvenTree/settings.py index 7fcda29dd4..0aa70d88f1 100644 --- a/InvenTree/InvenTree/settings.py +++ b/InvenTree/InvenTree/settings.py @@ -286,11 +286,6 @@ INSTALLED_APPS = [ 'allauth.socialaccount', # Use 'social' providers ] -# Load the allauth social backends -SOCIAL_BACKENDS = CONFIG.get('social_backends', []) -for app in SOCIAL_BACKENDS: - INSTALLED_APPS.append(app) - MIDDLEWARE = CONFIG.get('middleware', [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', @@ -659,3 +654,10 @@ MESSAGE_TAGS = { } SITE_ID = 1 + + +# Load the allauth social backends +SOCIAL_BACKENDS = CONFIG.get('social_backends', []) +for app in SOCIAL_BACKENDS: + INSTALLED_APPS.append(app) +