summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index 018a0dd..ad64f2a 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -182,7 +182,8 @@ class Course(models.Model):
duplicate_prerequisite = Quiz.objects.get(
id=duplicate_prereq_id
)
- duplicate_quiz.prerequisite.add(duplicate_prerequisite)
+ duplicate_quiz.prerequisite = duplicate_prerequisite
+ duplicate_quiz.save()
return new_course