bind opl 增加operation
This commit is contained in:
parent
2b0af1dfaf
commit
028cba10e8
|
@ -33,6 +33,7 @@ def bind_opl(ticket: Ticket, transition: Transition, new_ticket_data: dict):
|
||||||
opl = Opl.objects.get(id=new_ticket_data['opl'])
|
opl = Opl.objects.get(id=new_ticket_data['opl'])
|
||||||
ticket_data = ticket.ticket_data
|
ticket_data = ticket.ticket_data
|
||||||
ticket_data.update({
|
ticket_data.update({
|
||||||
|
'operation': opl.operation.id, # operation id值
|
||||||
'level': opl.level,
|
'level': opl.level,
|
||||||
'monitor': opl.monitor.id,
|
'monitor': opl.monitor.id,
|
||||||
'workers': list(OplWorker.objects.filter(opl=opl).values_list('worker__id', flat=True)),
|
'workers': list(OplWorker.objects.filter(opl=opl).values_list('worker__id', flat=True)),
|
||||||
|
|
Loading…
Reference in New Issue