changeset 85 | 451be7b1de20 |
parent 63 | 21cdadb1b98e |
child 86 | 404e9c1b8cff |
84:08af9e4ada78 | 85:451be7b1de20 |
---|---|
28 topics = forms.MultipleChoiceField(required=True, widget=forms.CheckboxSelectMultiple, choices=TOPIC_CHOICES,) |
28 topics = forms.MultipleChoiceField(required=True, widget=forms.CheckboxSelectMultiple, choices=TOPIC_CHOICES,) |
29 |
29 |
30 def clean_topics(self): |
30 def clean_topics(self): |
31 |
31 |
32 return self.cleaned_data["topics"] |
32 return self.cleaned_data["topics"] |
33 |
|
34 class EditQuestionForm(forms.ModelForm): |
|
35 |
|
36 class Meta: |
|
37 model = QuestionBank |