mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-08-17 03:11:22 +02:00
Add merged_to information to ticket
This commit is contained in:
@ -569,6 +569,15 @@ class Ticket(models.Model):
|
||||
verbose_name=_('Knowledge base item the user was viewing when they created this ticket.'),
|
||||
)
|
||||
|
||||
merged_to = models.ForeignKey(
|
||||
'self',
|
||||
verbose_name=_('merged to'),
|
||||
related_name='merged_tickets',
|
||||
on_delete=models.CASCADE,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
@property
|
||||
def time_spent(self):
|
||||
"""Return back total time spent on the ticket. This is calculated value
|
||||
|
Reference in New Issue
Block a user