From a819566c230f2235635ccc4ae881c4bec47f58af Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 18 Jun 2025 10:56:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20wmaterial=E6=B7=BB=E5=8A=A0can=5Fhandove?= =?UTF-8?q?r=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/wpm/models.py b/apps/wpm/models.py index 02195c10..051a27ae 100644 --- a/apps/wpm/models.py +++ b/apps/wpm/models.py @@ -127,7 +127,7 @@ class WMaterial(CommonBDModel): @property def count_handovering(self): - return Handoverb.objects.filter(wm=self, submit_time__isnull=True).aggregate(count=Sum('count'))['count'] or 0 + return Handoverb.objects.filter(wm=self, handover__submit_time__isnull=True).aggregate(count=Sum('count'))['count'] or 0 @classmethod def mat_in_qs(cls, mtask: Mtask, qs=None):