diff --git a/frappe/utils/jinja.py b/frappe/utils/jinja.py index 85ab80b214..6f94e16f50 100644 --- a/frappe/utils/jinja.py +++ b/frappe/utils/jinja.py @@ -24,7 +24,8 @@ def get_template(path): return get_jenv().get_template(path) def render_template(template, context): - context.update(get_allowed_functions_for_jenv()) + if not "frappe" in context: + context.update(get_allowed_functions_for_jenv()) template = Template(template) return template.render(**context)