add markers to exams (move away from group based to content based permissions)
This commit is contained in:
@@ -61,6 +61,7 @@ from .tables import QuestionTable, UserAnswerTable
|
||||
from .filters import QuestionFilter, UserAnswerFilter
|
||||
|
||||
from .forms import (
|
||||
ExamMarkerForm,
|
||||
QuestionForm,
|
||||
ExamForm,
|
||||
)
|
||||
@@ -429,6 +430,14 @@ class ExamAuthorUpdate(
|
||||
|
||||
template_name = "author_form.html"
|
||||
|
||||
class ExamMarkersUpdate(
|
||||
RevisionMixin, CheckCanEditMixin, LoginRequiredMixin, AuthorRequiredMixin, UpdateView
|
||||
):
|
||||
model = Exam
|
||||
form_class = ExamMarkerForm
|
||||
|
||||
template_name = "markers_form.html"
|
||||
|
||||
class ExamClone(ExamCloneMixin, ExamCreate):
|
||||
"""Clone exam view"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user