add create exam form to rapids
This commit is contained in:
+2
-2
@@ -9,7 +9,7 @@ from django.forms import (
|
||||
from django.forms import inlineformset_factory
|
||||
|
||||
from generic.models import (
|
||||
Examination,
|
||||
Examination
|
||||
)
|
||||
|
||||
from django.contrib.admin.widgets import FilteredSelectMultiple
|
||||
@@ -19,4 +19,4 @@ from django.forms.widgets import RadioSelect, TextInput, Textarea
|
||||
class ExaminationForm(ModelForm):
|
||||
class Meta:
|
||||
model = Examination
|
||||
fields = ["examination"]
|
||||
fields = ["examination"]
|
||||
|
||||
+3
-3
@@ -53,15 +53,15 @@ class ExamBase(models.Model):
|
||||
#exam_questions = SortedManyToManyField(Long, related_name="exams", blank="true")
|
||||
|
||||
active = models.BooleanField(
|
||||
help_text="If an exam should be available", default=True
|
||||
help_text="If an exam should be available", default=False
|
||||
)
|
||||
|
||||
exam_mode = models.BooleanField(
|
||||
help_text="If an exam should be take in exam_mode", default=True
|
||||
help_text="If an exam should be taken in exam mode", default=True
|
||||
)
|
||||
|
||||
publish_results = models.BooleanField(
|
||||
help_text="If an exams results should be available", default=True
|
||||
help_text="If an exams results should be available", default=False
|
||||
)
|
||||
|
||||
recreate_json = models.BooleanField(
|
||||
|
||||
Reference in New Issue
Block a user