+@user_passes_test(lambda u: u.is_superuser)
+def mark_final(request):
+ if request.method == 'POST':
+ form = forms.MarkFinalForm(data=request.POST)
+ if form.is_valid():
+ form.save()
+ return HttpResponseRedirect(reverse('mark_final_completed'))
+ else:
+ form = forms.MarkFinalForm()
+ return render(request, 'catalogue/mark_final.html', {'form': form})
+
+
+def mark_final_completed(request):
+ return render(request, 'catalogue/mark_final_completed.html')