mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-21 23:43:11 +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
|
ticket.priority = priority
|
||||||
|
|
||||||
if queue != ticket.queue.id:
|
if queue != ticket.queue.id:
|
||||||
c = TicketChange(
|
c = f.ticketchange_set.create(
|
||||||
followup=f,
|
|
||||||
field=_('Queue'),
|
field=_('Queue'),
|
||||||
old_value=ticket.queue.id,
|
old_value=ticket.queue.id,
|
||||||
new_value=queue,
|
new_value=queue,
|
||||||
)
|
)
|
||||||
c.save()
|
|
||||||
ticket.queue_id = queue
|
ticket.queue_id = queue
|
||||||
|
|
||||||
if due_date != ticket.due_date:
|
if due_date != ticket.due_date:
|
||||||
|
Loading…
Reference in New Issue
Block a user