From 4b2951f95d35674984774764f5991f89c5ca7815 Mon Sep 17 00:00:00 2001 From: Stephen Burrows Date: Thu, 3 Mar 2011 12:27:08 -0500 Subject: [PATCH] Corrected LazyNavigationRecurser to mark its return value as safe. --- contrib/shipherd/templatetags/shipherd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/shipherd/templatetags/shipherd.py b/contrib/shipherd/templatetags/shipherd.py index 9a4d74c..57fb020 100644 --- a/contrib/shipherd/templatetags/shipherd.py +++ b/contrib/shipherd/templatetags/shipherd.py @@ -3,6 +3,7 @@ from django.conf import settings from django.utils.safestring import mark_safe from philo.contrib.shipherd.models import Navigation from philo.models import Node +from django.utils.safestring import mark_safe from django.utils.translation import ugettext as _ @@ -63,7 +64,7 @@ class LazyNavigationRecurser(object): for node in self.template_nodes: bits.append(node.render(context)) context.pop() - return ''.join(bits) + return mark_safe(''.join(bits)) class RecurseNavigationNode(template.Node): -- 2.20.1