[jinja] globals
This commit is contained in:
parent
55a3b5c259
commit
fe0c67fc21
1 changed files with 4 additions and 0 deletions
|
|
@ -54,7 +54,11 @@ def get_allowed_functions_for_jenv():
|
|||
"get_hooks": frappe.get_hooks,
|
||||
"get_meta": frappe.get_meta,
|
||||
"get_doc": frappe.get_doc,
|
||||
"db": {
|
||||
"get_value": frappe.db.get_value,
|
||||
},
|
||||
"get_list": frappe.get_list,
|
||||
"get_all": frappe.get_all,
|
||||
"utils": datautils,
|
||||
"user": frappe.local.session.user,
|
||||
"date_format": frappe.db.get_default("date_format") or "yyyy-mm-dd",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue