add create exam form to rapids

This commit is contained in:
Ross
2021-04-04 20:07:51 +01:00
parent 845ab6c377
commit 04596da2e4
7 changed files with 33 additions and 9 deletions
+7 -1
View File
@@ -206,4 +206,10 @@ AnswerUpdateFormSet = inlineformset_factory(
can_delete=True,
extra=0,
max_num=10,
)
)
class ExamForm(ModelForm):
class Meta:
model = Exam
fields = ["name", "time_limit", "exam_mode"]