From 5487893ed32643e70797bb458d79c7fca4bb1e58 Mon Sep 17 00:00:00 2001 From: Harsh Bhikadia Date: Mon, 27 Apr 2020 18:52:32 +0530 Subject: [PATCH] Update test_settings.py --- admintool_command/tests/test_settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/admintool_command/tests/test_settings.py b/admintool_command/tests/test_settings.py index 3359cd9..de0fad8 100644 --- a/admintool_command/tests/test_settings.py +++ b/admintool_command/tests/test_settings.py @@ -33,6 +33,7 @@ 'context_processors': ( 'django.contrib.auth.context_processors.auth', 'django.template.context_processors.request', + 'django.contrib.messages.context_processors.messages', ) } }] @@ -61,6 +62,9 @@ 'django.middleware.common.CommonMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', ] +MIDDLEWARE = MIDDLEWARE_CLASSES + SECRET_KEY = 'foobar'