.
This commit is contained in:
@@ -128,12 +128,10 @@ class RapidForm(ModelForm):
|
||||
)
|
||||
|
||||
def save(self, commit=True):
|
||||
# Get the unsaved Pizza instance
|
||||
instance = ModelForm.save(self, False)
|
||||
instance.save()
|
||||
|
||||
for exam in self.cleaned_data["exams"]:
|
||||
# exam = Exam.objects.get(pk=exam_pk)
|
||||
exam.exam_questions.add(instance)
|
||||
|
||||
# # Prepare a 'save_m2m' method for the form,
|
||||
|
||||
Reference in New Issue
Block a user