fix: handover_submit bug

This commit is contained in:
caoqianming 2024-09-05 15:17:58 +08:00
parent 4b44b40c77
commit e51960d5ba
1 changed files with 1 additions and 1 deletions

View File

@ -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