add markers to exams (move away from group based to content based permissions)
This commit is contained in:
+4
-1
@@ -8,7 +8,7 @@ from django.forms import (
|
||||
)
|
||||
from django.forms import inlineformset_factory
|
||||
|
||||
from generic.forms import ExamAuthorFormMixin, ExamFormMixin
|
||||
from generic.forms import ExamAuthorFormMixin, ExamFormMixin, ExamMarkerFormMixin
|
||||
|
||||
from .models import (
|
||||
Question,
|
||||
@@ -41,6 +41,9 @@ class ExamAuthorForm(ExamAuthorFormMixin):
|
||||
class Meta(ExamAuthorFormMixin.Meta):
|
||||
model = Exam
|
||||
|
||||
class ExamMarkerForm(ExamMarkerFormMixin):
|
||||
class Meta(ExamMarkerFormMixin.Meta):
|
||||
model = Exam
|
||||
|
||||
class QuestionForm(ModelForm):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user