diff options
author | adityacp | 2020-02-28 10:37:07 +0530 |
---|---|---|
committer | adityacp | 2020-02-28 10:37:07 +0530 |
commit | 78cc032340a8f0c8e0d456770783f2c894935c04 (patch) | |
tree | 3b6af04c555e86c99b7e8fa5a5442765402e9af3 /yaksh/middleware/user_time_zone.py | |
parent | 0d189e0156741685e6f6f1c605bf99b44d082b0b (diff) | |
download | online_test-78cc032340a8f0c8e0d456770783f2c894935c04.tar.gz online_test-78cc032340a8f0c8e0d456770783f2c894935c04.tar.bz2 online_test-78cc032340a8f0c8e0d456770783f2c894935c04.zip |
Bump django to the latest version
Diffstat (limited to 'yaksh/middleware/user_time_zone.py')
-rw-r--r-- | yaksh/middleware/user_time_zone.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/yaksh/middleware/user_time_zone.py b/yaksh/middleware/user_time_zone.py index 206c08a..92035e8 100644 --- a/yaksh/middleware/user_time_zone.py +++ b/yaksh/middleware/user_time_zone.py @@ -8,6 +8,12 @@ class TimezoneMiddleware(object): if user timezone is not available default value 'Asia/Kolkata' is activated """ + def __init__(self, get_response): + self.get_response = get_response + + def __call__(self, request): + return self.get_response(request) + def process_request(self, request): user = request.user user_tz = 'Asia/Kolkata' |