.
This commit is contained in:
+7
-2
@@ -9,7 +9,7 @@ from django.forms import (
|
||||
from django.forms import inlineformset_factory
|
||||
|
||||
from generic.models import (
|
||||
Examination
|
||||
Examination, QuestionNote
|
||||
)
|
||||
|
||||
from django.contrib.admin.widgets import FilteredSelectMultiple
|
||||
@@ -19,4 +19,9 @@ from django.forms.widgets import RadioSelect, TextInput, Textarea
|
||||
class ExaminationForm(ModelForm):
|
||||
class Meta:
|
||||
model = Examination
|
||||
fields = ["examination"]
|
||||
fields = ["examination"]
|
||||
|
||||
class QuestionNoteForm(ModelForm):
|
||||
class Meta:
|
||||
model = QuestionNote()
|
||||
fields = ["question", "author", "note_type", "note"]
|
||||
Reference in New Issue
Block a user