From f347fa0d23d50380d469b7c8ab40aba9cbfd16d0 Mon Sep 17 00:00:00 2001 From: zty Date: Wed, 24 Sep 2025 14:04:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9ofm-services.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ofm/services.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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',