mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-21 15:33:09 +01:00
Create ticket change through instance relationship
Co-authored-by: Benbb96 <Benbb96@users.noreply.github.com>
This commit is contained in:
parent
5b39c9aeeb
commit
a775622521
@ -306,13 +306,11 @@ def update_ticket(
|
||||
ticket.priority = priority
|
||||
|
||||
if queue != ticket.queue.id:
|
||||
c = TicketChange(
|
||||
followup=f,
|
||||
c = f.ticketchange_set.create(
|
||||
field=_('Queue'),
|
||||
old_value=ticket.queue.id,
|
||||
new_value=queue,
|
||||
)
|
||||
c.save()
|
||||
ticket.queue_id = queue
|
||||
|
||||
if due_date != ticket.due_date:
|
||||
|
Loading…
Reference in New Issue
Block a user