summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authoradityacp2017-11-22 12:02:49 +0530
committeradityacp2017-11-22 12:02:49 +0530
commitacce9174639224234325c007f30d5679712e4c2c (patch)
treeea3e8a7e83b9964f9c289f63a7f54ca1243fdfe7 /yaksh/models.py
parent8e5354fb2fdab96780bfd147ba5b1724eebd673b (diff)
downloadonline_test-acce9174639224234325c007f30d5679712e4c2c.tar.gz
online_test-acce9174639224234325c007f30d5679712e4c2c.tar.bz2
online_test-acce9174639224234325c007f30d5679712e4c2c.zip
Change forms.py, models.py, views.py, templates, templatetags
- Add start_time, end_time enrollement in course form - Change get_quiz_details in course model - Add validation to check if course is active and not expired - Template changes for cleaner dashboard
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index 296ec48..d611f6b 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -637,7 +637,7 @@ class Course(models.Model):
return quiz_list
def get_quiz_details(self):
- return [(self, quiz, quiz.get_total_students(self),
+ return [(quiz, quiz.get_total_students(self),
quiz.get_passed_students(self),
quiz.get_failed_students(self))
for quiz in self.get_quizzes()]