Skip to content
Snippets Groups Projects
Commit 7ed42bed authored by Todd Dembrey's avatar Todd Dembrey
Browse files

fixup! Vary the 404 based on if the user is logged in and prevent search on apply

parent d762ece3
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ from django.views.generic.edit import ModelFormMixin, ProcessFormView ...@@ -8,7 +8,7 @@ from django.views.generic.edit import ModelFormMixin, ProcessFormView
def page_not_found(request, exception=None, template_name='apply/404.html'): def page_not_found(request, exception=None, template_name='apply/404.html'):
if not request.user.is_authenticated: if not request.user.is_authenticated:
template_name='404.html' template_name = '404.html'
return defaults.page_not_found(request, exception, template_name) return defaults.page_not_found(request, exception, template_name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment