Merge pull request #2550 from rooftopcellist/fix_expire_command

fix expire session command
This commit is contained in:
Ryan Petrello 2018-07-16 14:53:31 -04:00 committed by GitHub
commit 5bb71fc133
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,5 +33,5 @@ class Command(BaseCommand):
for session in sessions:
user_id = session.get_decoded().get('_auth_user_id')
if (user is None) or (user_id and user.id == int(user_id)):
request.session = request.session = import_module(settings.SESSION_ENGINE).SessionStore(session.session_key)
request.session = import_module(settings.SESSION_ENGINE).SessionStore(session.session_key)
logout(request)