Caption and sorting of tickets in dropdown menus should use ID, e. g. when adding a dependency.

This commit is contained in:
root 2013-03-06 10:58:25 +01:00
parent d7a769fa1d
commit 20d5a24eab

View File

@ -444,9 +444,10 @@ class Ticket(models.Model):
class Meta:
get_latest_by = "created"
ordering = ('id',)
def __unicode__(self):
return u'%s' % self.title
return u'%s %s' % (self.id, self.title)
def get_absolute_url(self):
return ('helpdesk_view', (self.id,))