Refs #31928 -- Made SessionMiddleware call super().__init__().
This commit is contained in:
parent
68d7cf4054
commit
ea57a2834f
@ -13,9 +13,7 @@ class SessionMiddleware(MiddlewareMixin):
|
|||||||
# RemovedInDjango40Warning: when the deprecation ends, replace with:
|
# RemovedInDjango40Warning: when the deprecation ends, replace with:
|
||||||
# def __init__(self, get_response):
|
# def __init__(self, get_response):
|
||||||
def __init__(self, get_response=None):
|
def __init__(self, get_response=None):
|
||||||
self._get_response_none_deprecation(get_response)
|
super().__init__(get_response)
|
||||||
self.get_response = get_response
|
|
||||||
self._async_check()
|
|
||||||
engine = import_module(settings.SESSION_ENGINE)
|
engine = import_module(settings.SESSION_ENGINE)
|
||||||
self.SessionStore = engine.SessionStore
|
self.SessionStore = engine.SessionStore
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user