Skip to content

Commit 98d5ce3

Browse files
committed
Fix unit tests
1 parent 7ad440f commit 98d5ce3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rest_auth/tests/settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,17 @@
2525
}
2626
}
2727

28-
MIDDLEWARE_CLASSES = [
28+
MIDDLEWARE = [
2929
'django.middleware.common.CommonMiddleware',
3030
'django.contrib.sessions.middleware.SessionMiddleware',
3131
'django.middleware.csrf.CsrfViewMiddleware',
3232
'django.contrib.auth.middleware.AuthenticationMiddleware',
3333
'django.contrib.messages.middleware.MessageMiddleware'
3434
]
3535

36+
# Adding for backwards compatibility for Django 1.8 tests
37+
MIDDLEWARE_CLASSES = MIDDLEWARE
38+
3639
TEMPLATE_CONTEXT_PROCESSORS = [
3740
'django.contrib.auth.context_processors.auth',
3841
'django.core.context_processors.debug',

0 commit comments

Comments
 (0)