add markers to exams (move away from group based to content based permissions)
This commit is contained in:
@@ -21,6 +21,7 @@ from django.http import HttpResponseRedirect, HttpResponse
|
||||
|
||||
from .forms import (
|
||||
ExamAuthorForm,
|
||||
ExamMarkerForm,
|
||||
RapidForm,
|
||||
MarkRapidQuestionForm,
|
||||
ImageFormSet,
|
||||
@@ -761,6 +762,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 UserAnswerView(LoginRequiredMixin, DetailView):
|
||||
model = UserAnswer
|
||||
|
||||
|
||||
Reference in New Issue
Block a user