This commit is contained in:
Ross
2021-08-23 19:23:03 +01:00
parent 737f4a91a0
commit f6bf034f4a
3 changed files with 31 additions and 0 deletions
+16
View File
@@ -52,6 +52,11 @@ from generic.models import QuestionNote
import json
from django.shortcuts import (
render_to_response
)
from django.template import RequestContext
def feedback_checker(user):
return user.groups.filter(name="feedback_checker").exists()
@@ -328,3 +333,14 @@ def view_feedback(request):
"notes": feedback_notes,
},
)
# HTTP Error 400
def page_not_found(request):
response = render_to_response(
'404.html',
context_instance=RequestContext(request)
)
response.status_code = 404
return response