mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-01-19 04:19:54 +01:00
Fix issue #38 - Knowledgebase article links don't work in recent Django checkouts.
This commit is contained in:
parent
738a88a5aa
commit
20e28e414e
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user