mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-13 02:10:49 +01:00
Caption and sorting of tickets in dropdown menus should use ID, e. g. when adding a dependency.
This commit is contained in:
parent
d7a769fa1d
commit
20d5a24eab
@ -444,9 +444,10 @@ class Ticket(models.Model):
|
|||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
get_latest_by = "created"
|
get_latest_by = "created"
|
||||||
|
ordering = ('id',)
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
return u'%s' % self.title
|
return u'%s %s' % (self.id, self.title)
|
||||||
|
|
||||||
def get_absolute_url(self):
|
def get_absolute_url(self):
|
||||||
return ('helpdesk_view', (self.id,))
|
return ('helpdesk_view', (self.id,))
|
||||||
|
Loading…
Reference in New Issue
Block a user