From f6be2403f5228fe19a6976006335eb189d0b47ef Mon Sep 17 00:00:00 2001 From: Ross Poulton Date: Sun, 8 Mar 2009 06:13:51 +0000 Subject: [PATCH] Fixes issue #51: links to other tickets (via #n syntax in followups etc) were having their HTML escaped, so they didn't show up. Thanks to Andreas Kotowicz for this patch. --- templatetags/ticket_to_link.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templatetags/ticket_to_link.py b/templatetags/ticket_to_link.py index f942d878..84573cb6 100644 --- a/templatetags/ticket_to_link.py +++ b/templatetags/ticket_to_link.py @@ -15,6 +15,7 @@ import re from django import template from django.core.urlresolvers import reverse +from django.utils.safestring import mark_safe from helpdesk.models import Ticket @@ -52,7 +53,7 @@ def num_to_link(text): if ticket: style = ticket.get_status_display() text = "%s#%s%s" % (text[:match.start()], url, style, match.groups()[0], text[match.end():]) - return text + return mark_safe(text) register = template.Library() register.filter(num_to_link)