From 664a54fec35ed9768aeb7e40a3f56cc7b819bd73 Mon Sep 17 00:00:00 2001 From: Adolfo Fitoria Date: Mon, 5 Aug 2013 15:32:17 -0600 Subject: do not display error if the site is not multilang and the user has both middlewares on --- askbot/startup_procedures.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/askbot/startup_procedures.py b/askbot/startup_procedures.py index 27cd3c49..aaf0af99 100644 --- a/askbot/startup_procedures.py +++ b/askbot/startup_procedures.py @@ -902,11 +902,6 @@ def test_locale_middlewares(): errors.append("Please remove '%s' from your MIDDLEWARE_CLASSES" % askbot_locale_middleware) if django_locale_middleware not in django_settings.MIDDLEWARE_CLASSES: errors.append("Please add '%s' to your MIDDLEWARE_CLASSES" % django_locale_middleware) - else: - if askbot_locale_middleware not in django_settings.MIDDLEWARE_CLASSES: - errors.append("Please add '%s' to your MIDDLEWARE_CLASSES" % askbot_locale_middleware) - if django_locale_middleware in django_settings.MIDDLEWARE_CLASSES: - errors.append("Please remove '%s' from your MIDDLEWARE_CLASSES" % django_locale_middleware) print_errors(errors) -- cgit v1.2.3-1-g7c22