.
This commit is contained in:
+1
-1
@@ -122,7 +122,7 @@ def generic_exam_json_edit(request):
|
||||
|
||||
for i in question_ids:
|
||||
# We get an integrity error if we try to add an object that already exists
|
||||
if not question_objects.filter(pk=i).exists():
|
||||
if not exam.exam_questions.filter(pk=i).exists():
|
||||
exam.exam_questions.add(i)
|
||||
#exam.exam_questions.add(question_objects)
|
||||
exam.save()
|
||||
|
||||
Reference in New Issue
Block a user