diff --git a/apps/ofm/services.py b/apps/ofm/services.py index 8c7f47eb..8a17900d 100644 --- a/apps/ofm/services.py +++ b/apps/ofm/services.py @@ -1,7 +1,7 @@ from apps.wf.models import Ticket # 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 @@ -56,7 +56,7 @@ def bind_file(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.update({ 't_model': 'publicity',