From 78cc032340a8f0c8e0d456770783f2c894935c04 Mon Sep 17 00:00:00 2001 From: adityacp Date: Fri, 28 Feb 2020 10:37:07 +0530 Subject: Bump django to the latest version --- yaksh/middleware/one_session_per_user.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'yaksh/middleware/one_session_per_user.py') diff --git a/yaksh/middleware/one_session_per_user.py b/yaksh/middleware/one_session_per_user.py index 1ed1786..3b8d302 100644 --- a/yaksh/middleware/one_session_per_user.py +++ b/yaksh/middleware/one_session_per_user.py @@ -20,6 +20,13 @@ class OneSessionPerUserMiddleware(object): Link: https://docs.djangoproject.com/en/1.5/topics/auth/customizing/ #extending-the-existing-user-model """ + + def __init__(self, get_response): + self.get_response = get_response + + def __call__(self, request): + return self.get_response(request) + def process_request(self, request): """ # Documentation: -- cgit