Skip to content

Commit

Permalink
SessionAuthenticationMiddleware is Django 1.7+ only
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbrzt committed Jan 10, 2015
1 parent 0d7a99a commit 2641065
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion loginas/tests/settings.py
Expand Up @@ -19,6 +19,12 @@
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
]


import django
if django.VERSION[:2] >= (1, 7):
MIDDLEWARE_CLASSES.append(
'django.contrib.auth.middleware.SessionAuthenticationMiddleware'
)

0 comments on commit 2641065

Please sign in to comment.