From 20e28e414e2d706b9cf55484a24ed4491f62fc5e Mon Sep 17 00:00:00 2001 From: Ross Poulton Date: Mon, 19 Jan 2009 10:02:05 +0000 Subject: [PATCH] Fix issue #38 - Knowledgebase article links don't work in recent Django checkouts. --- models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/models.py b/models.py index 8bb804fd..ad2c148c 100644 --- a/models.py +++ b/models.py @@ -407,7 +407,7 @@ class Ticket(models.Model): return u'%s' % self.title def get_absolute_url(self): - return ('helpdesk_view', [str(self.id)]) + return ('helpdesk_view', (self.id,)) get_absolute_url = models.permalink(get_absolute_url) def save(self, force_insert=False, force_update=False): @@ -757,7 +757,7 @@ class KBCategory(models.Model): ordering = ['title',] def get_absolute_url(self): - return ('helpdesk_kb_category', [str(self.slug)]) + return ('helpdesk_kb_category', (), {'slug': self.slug}) get_absolute_url = models.permalink(get_absolute_url) @@ -817,7 +817,7 @@ class KBItem(models.Model): ordering = ['title',] def get_absolute_url(self): - return ('helpdesk_kb_item', [str(self.id)]) + return ('helpdesk_kb_item', (self.id,)) get_absolute_url = models.permalink(get_absolute_url)