summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authorankitjavalkar2017-04-25 19:41:23 +0530
committerankitjavalkar2017-04-28 17:16:45 +0530
commitc6550fbdf7681a2d7d0ad1c893c13147d80405e3 (patch)
tree5e2838b2f4104018804d080d00d268aa962966e3 /yaksh
parent0746a887480c96a2512abe9231c5b4e062bd2b63 (diff)
downloadonline_test-c6550fbdf7681a2d7d0ad1c893c13147d80405e3.tar.gz
online_test-c6550fbdf7681a2d7d0ad1c893c13147d80405e3.tar.bz2
online_test-c6550fbdf7681a2d7d0ad1c893c13147d80405e3.zip
Fix typos and remove commented code
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index e856f9b..018a0dd 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -151,7 +151,7 @@ class Course(models.Model):
objects = CourseManager()
- def create_duplicate_course(self, user): ##@@
+ def create_duplicate_course(self, user):
quizzes = self.quiz_set.all()
prerequisite_map = []
duplicate_quiz_map = {}
@@ -182,7 +182,7 @@ class Course(models.Model):
duplicate_prerequisite = Quiz.objects.get(
id=duplicate_prereq_id
)
- duplicate_quiz.prerequite.add(duplicate_prerequisite)
+ duplicate_quiz.prerequisite.add(duplicate_prerequisite)
return new_course