feat: 修改ofm-services.py
This commit is contained in:
parent
362a5ef725
commit
f347fa0d23
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
from apps.wf.models import Ticket
|
from apps.wf.models import Ticket
|
||||||
# TicketFlow, Transition, Workflow, CustomField, State,
|
# TicketFlow, Transition, Workflow, CustomField, State,
|
||||||
from apps.ofm.models import LendingSeal, Vehicle, BorrowRecord, publicity
|
from apps.ofm.models import LendingSeal, Vehicle, BorrowRecord, Publicity
|
||||||
from rest_framework.exceptions import ParseError
|
from rest_framework.exceptions import ParseError
|
||||||
|
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ def bind_file(ticket: Ticket, transition, new_ticket_data: dict):
|
||||||
|
|
||||||
|
|
||||||
def bind_publicity(ticket: Ticket, transition, new_ticket_data: dict):
|
def bind_publicity(ticket: Ticket, transition, new_ticket_data: dict):
|
||||||
ins = publicity.objects.get(id=new_ticket_data['t_id'])
|
ins = Publicity.objects.get(id=new_ticket_data['t_id'])
|
||||||
ticket_data = ticket.ticket_data
|
ticket_data = ticket.ticket_data
|
||||||
ticket_data.update({
|
ticket_data.update({
|
||||||
't_model': 'publicity',
|
't_model': 'publicity',
|
||||||
|
|
Loading…
Reference in New Issue