fix: add model and enum to global template rendering context
This commit is contained in:
parent
26ebfcab09
commit
f5ec161687
1 changed files with 2 additions and 0 deletions
|
|
@ -402,6 +402,8 @@ def before_render(event):
|
||||||
context = event
|
context = event
|
||||||
context["config"] = config
|
context["config"] = config
|
||||||
context["app"] = app
|
context["app"] = app
|
||||||
|
context["model"] = app.model
|
||||||
|
context["enum"] = app.enum
|
||||||
context["web"] = web
|
context["web"] = web
|
||||||
context["h"] = helpers
|
context["h"] = helpers
|
||||||
context["url"] = request.route_url
|
context["url"] = request.route_url
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue