From e51960d5ba2e617c2b863914038d325408cecc8f Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 5 Sep 2024 15:17:58 +0800 Subject: [PATCH] fix: handover_submit bug --- apps/wpm/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/wpm/services.py b/apps/wpm/services.py index 45007239..60a70e6b 100644 --- a/apps/wpm/services.py +++ b/apps/wpm/services.py @@ -561,7 +561,7 @@ def handover_submit(handover: Handover, user: User, now: Union[datetime.datetime if handover.submit_time is not None: return now = timezone.now() - handoverb_qs = Handover.objects.filter(handover=handover) + handoverb_qs = Handoverb.objects.filter(handover=handover) need_add = True material = handover.material if '混料' in material.name: # hard code