summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authoradityacp2016-05-17 12:59:24 +0530
committeradityacp2016-05-17 12:59:24 +0530
commit7b762b4550f08b95c1ebf8196bd79c3f77a306ca (patch)
tree6553297f4855810eb349916a4a5947a1f88c4fb2 /yaksh/models.py
parentc1cd00f34341e06dce7610fa5da42d68b531bd92 (diff)
downloadonline_test-7b762b4550f08b95c1ebf8196bd79c3f77a306ca.tar.gz
online_test-7b762b4550f08b95c1ebf8196bd79c3f77a306ca.tar.bz2
online_test-7b762b4550f08b95c1ebf8196bd79c3f77a306ca.zip
comment changes
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index dbe7892..6ee02e1 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -48,9 +48,6 @@ test_status = (
('completed', 'Completed'),
)
-# get current timezone info
-tz = pytz.timezone(timezone.get_current_timezone_name())
-
def get_assignment_dir(instance, filename):
return '%s/%s' % (instance.user.roll_number, instance.assignmentQuestion.id)
@@ -302,7 +299,9 @@ class Quiz(models.Model):
# The end date and time of the quiz
end_date_time = models.DateTimeField("End Date and Time of the quiz",
- default=datetime(2199, 1, 1, tzinfo=tz),
+ default=datetime(2199, 1, 1,
+ tzinfo=pytz.timezone\
+ (timezone.get_current_timezone_name())),
null=True)
# This is always in minutes.