.
This commit is contained in:
@@ -20,6 +20,7 @@ from django.http import Http404, JsonResponse
|
||||
from django.http import HttpResponseRedirect, HttpResponse
|
||||
|
||||
from .forms import (
|
||||
ExamAuthorForm,
|
||||
RapidForm,
|
||||
MarkRapidQuestionForm,
|
||||
ImageFormSet,
|
||||
@@ -858,6 +859,10 @@ class ExamUpdate(
|
||||
|
||||
return super().form_valid(form)
|
||||
|
||||
#TODO: AUTHOR REQURIED (NOT AUTHORORCHECKER)
|
||||
class ExamAuthorUpdate(RevisionMixin, LoginRequiredMixin, AuthorOrCheckerRequiredMixin, UpdateView):
|
||||
model = Exam
|
||||
form_class = ExamAuthorForm
|
||||
|
||||
class ExamDelete(RevisionMixin, AuthorOrCheckerRequiredMixin, DeleteView):
|
||||
model = Exam
|
||||
|
||||
Reference in New Issue
Block a user