From b4ffb91b9c6df6b6c2a0c52ff695aaf142f87772 Mon Sep 17 00:00:00 2001 From: Ross Poulton Date: Thu, 28 Apr 2011 20:19:42 +1000 Subject: [PATCH] Ensure queue locale is included in safe_template_context as reported by vvarp. This should close GH-56 without further issues - please reopen if required.. --- helpdesk/lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/lib.py b/helpdesk/lib.py index 9a831151..9080b210 100644 --- a/helpdesk/lib.py +++ b/helpdesk/lib.py @@ -289,7 +289,7 @@ def safe_template_context(ticket): } queue = ticket.queue - for field in ( 'title', 'slug', 'email_address', 'from_address'): + for field in ( 'title', 'slug', 'email_address', 'from_address', 'locale'): attr = getattr(queue, field, None) if callable(attr): context['queue'][field] = attr()