From 3977e1d792889876a47a915702320861f3a3d04e Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 5 Jan 2022 19:14:07 +0000 Subject: [PATCH] . --- rapids/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rapids/forms.py b/rapids/forms.py index 90e509ed..31f125b4 100755 --- a/rapids/forms.py +++ b/rapids/forms.py @@ -129,8 +129,8 @@ class RapidForm(ModelForm): instance = ModelForm.save(self, False) instance.save() - for exam_pk in self.cleaned_data["exams"]: - exam = Exam.objects.get(pk=exam_pk) + for exam in self.cleaned_data["exams"]: + #exam = Exam.objects.get(pk=exam_pk) exam.exam_questions.add(instance)