misc: pass all args to default 404 handler (#21867)
This commit is contained in:
parent
6c34aa524a
commit
48a7900579
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue