mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-12 23:05:12 +00:00
Fix that HttpServerError now takes a request as parameter
This commit is contained in:
@ -78,7 +78,7 @@ def simple_form(instancetype, itemid, request, formclass, formtemplate='base/for
|
||||
def template_to_string(templatename, attrs = {}):
|
||||
return get_template(templatename).render(Context(attrs))
|
||||
|
||||
def HttpServerError(msg):
|
||||
def HttpServerError(request, msg):
|
||||
r = render(request, 'errors/500.html', {
|
||||
'message': msg,
|
||||
})
|
||||
|
Reference in New Issue
Block a user