Add app to render_args of render_template helper
This commit is contained in:
@@ -29,6 +29,7 @@ def render_new_application_form(
|
|||||||
if application_id:
|
if application_id:
|
||||||
application = Applications.get(application_id)
|
application = Applications.get(application_id)
|
||||||
render_args["form"] = form or form_class(obj=application)
|
render_args["form"] = form or form_class(obj=application)
|
||||||
|
render_args["application"] = application
|
||||||
else:
|
else:
|
||||||
render_args["form"] = form or form_class()
|
render_args["form"] = form or form_class()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user