.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user