summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml1
-rw-r--r--yaksh/middleware/user_time_zone.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 8f48a88..bf77d5a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -11,6 +11,7 @@ env:
install:
- pip install git+https://github.com/FOSSEE/online_test.git#egg=yaksh-0.1
- pip install -q Django==$DJANGO --use-mirrors
+ - pip install -q pytz
before_install:
- sudo apt-get update -qq
diff --git a/yaksh/middleware/user_time_zone.py b/yaksh/middleware/user_time_zone.py
index f48bb62..3555d1f 100644
--- a/yaksh/middleware/user_time_zone.py
+++ b/yaksh/middleware/user_time_zone.py
@@ -1,7 +1,7 @@
import pytz
from django.utils import timezone
-from yaksh.models import Profile
+
class TimezoneMiddleware(object):
""" Middleware to get user's timezone and activate timezone