add markers to exams (move away from group based to content based permissions)
This commit is contained in:
@@ -26,6 +26,7 @@ from django.http import HttpResponseRedirect, HttpResponse
|
||||
|
||||
from .forms import (
|
||||
ExamAuthorForm,
|
||||
ExamMarkerForm,
|
||||
LongForm,
|
||||
LongSeriesForm,
|
||||
LongSeriesImageFormSet,
|
||||
@@ -977,6 +978,14 @@ class ExamAuthorUpdate(
|
||||
form_class = ExamAuthorForm
|
||||
template_name = "author_form.html"
|
||||
|
||||
class ExamMarkersUpdate(
|
||||
RevisionMixin, CheckCanEditMixin, LoginRequiredMixin, AuthorRequiredMixin, UpdateView
|
||||
):
|
||||
model = Exam
|
||||
form_class = ExamMarkerForm
|
||||
|
||||
template_name = "markers_form.html"
|
||||
|
||||
|
||||
# class ExamViewSet(RevisionMixin, viewsets.ModelViewSet):
|
||||
# queryset = Exam.objects.all().order_by("name")
|
||||
|
||||
Reference in New Issue
Block a user