From 20d5a24eab2b7c79ed8be5d2ec06a620eea94414 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 6 Mar 2013 10:58:25 +0100 Subject: [PATCH] Caption and sorting of tickets in dropdown menus should use ID, e. g. when adding a dependency. --- helpdesk/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helpdesk/models.py b/helpdesk/models.py index 42a61754..b376e450 100644 --- a/helpdesk/models.py +++ b/helpdesk/models.py @@ -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,))