diff --git a/django/contrib/sessions/middleware.py b/django/contrib/sessions/middleware.py index 95ad30ce7fc..cb8c1ff45b8 100644 --- a/django/contrib/sessions/middleware.py +++ b/django/contrib/sessions/middleware.py @@ -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