Refs #31928 -- Made SessionMiddleware call super().__init__().

This commit is contained in:
Kevin Michel 2020-08-28 10:05:08 +02:00 committed by Mariusz Felisiak
parent 68d7cf4054
commit ea57a2834f
1 changed files with 1 additions and 3 deletions

View File

@ -13,9 +13,7 @@ class SessionMiddleware(MiddlewareMixin):
# RemovedInDjango40Warning: when the deprecation ends, replace with:
# def __init__(self, get_response):
def __init__(self, get_response=None):
self._get_response_none_deprecation(get_response)
self.get_response = get_response
self._async_check()
super().__init__(get_response)
engine = import_module(settings.SESSION_ENGINE)
self.SessionStore = engine.SessionStore