.
This commit is contained in:
+6
-13
@@ -7,7 +7,7 @@ from django.forms import (
|
||||
CharField,
|
||||
)
|
||||
from django.forms import inlineformset_factory
|
||||
from generic.forms import ExamFormMixin
|
||||
from generic.forms import ExamAuthorFormMixin, ExamFormMixin
|
||||
|
||||
from longs.models import (
|
||||
# Examination,
|
||||
@@ -267,16 +267,9 @@ LongSeriesImageFormSet = inlineformset_factory(
|
||||
|
||||
|
||||
class ExamForm(ExamFormMixin, ModelForm):
|
||||
class Meta:
|
||||
class Meta(ExamFormMixin.Meta):
|
||||
model = Exam
|
||||
fields = [
|
||||
"name",
|
||||
"time_limit",
|
||||
"open_access",
|
||||
"authors_only",
|
||||
"exam_mode",
|
||||
"active",
|
||||
"publish_results",
|
||||
"double_mark",
|
||||
"archive",
|
||||
]
|
||||
|
||||
class ExamAuthorForm(ExamAuthorFormMixin):
|
||||
class Meta(ExamAuthorFormMixin.Meta):
|
||||
model = Exam
|
||||
Reference in New Issue
Block a user