From 16230c59bff5c4e4bc62f43343ffa739fcd3c97d Mon Sep 17 00:00:00 2001 From: Leandro Roberto da Silva Date: Thu, 8 Feb 2018 21:02:50 -0200 Subject: [PATCH] Disp context e Request para render de template de menus yaml --- sapl/base/templatetags/menus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/base/templatetags/menus.py b/sapl/base/templatetags/menus.py index e5b6b80d7..d15368553 100644 --- a/sapl/base/templatetags/menus.py +++ b/sapl/base/templatetags/menus.py @@ -76,7 +76,7 @@ def nav_run(context, path=None): return try: - rendered = yaml_template.render() + rendered = yaml_template.render(context, request) menu = yaml.load(rendered) resolve_urls_inplace(menu, root_pk, rm, context) except Exception as e: