misc: pass all args to default 404 handler (#21867)

This commit is contained in:
Frédéric Péters 2018-02-15 11:05:21 +01:00
parent 6c34aa524a
commit 48a7900579
1 changed files with 1 additions and 1 deletions

View File

@ -387,7 +387,7 @@ def error404(request, *args, **kwargs):
# this happens when the 404 handler is called early on, for example
# when the given hostname doesn't exist as a tenant
from django.views.defaults import page_not_found
return page_not_found(request)
return page_not_found(request, *args, **kwargs)
page = Page()
page.template_name = 'standard'
return publish_page(request, page, status=404, template_name='combo/404.html')