mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-14 10:51:21 +01:00
Merge pull request #169 from mpietsch/ticket_caption_sorting
Caption and sorting of tickets in dropdown menus should use ID, e. g. when adding a dependency
This commit is contained in:
commit
36c7e59f07
@ -442,9 +442,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,))
|
||||
|
Loading…
Reference in New Issue
Block a user