From 7a96922293337faf7d23f1d39978d7589c806b23 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 17 Jul 2019 17:15:50 -0700 Subject: [PATCH] Workaround Django axes checking settings.MIDDLEWARE Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/tests/data/django_test_settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plinth/tests/data/django_test_settings.py b/plinth/tests/data/django_test_settings.py index fe00c87b1..b3d9f231f 100644 --- a/plinth/tests/data/django_test_settings.py +++ b/plinth/tests/data/django_test_settings.py @@ -47,6 +47,10 @@ INSTALLED_APPS = [ 'plinth', ] +# XXX: Workaround problem with django-axes 5.0.7 checking for settings in +# settings.MIDDLEWARE. This fails on Django version 1.11. +MIDDLEWARE = () + # These are included here solely to suppress Django warnings # during testing setup MIDDLEWARE_CLASSES = (