From 9cd5bfc8f9e345f0f84727fdd80762c54c1830fb Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 4 Mar 2024 10:25:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20material=20unit=20=E5=BF=BD=E7=95=A5?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/mtm/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/mtm/services.py b/apps/mtm/services.py index 1f32e264..1072983c 100644 --- a/apps/mtm/services.py +++ b/apps/mtm/services.py @@ -58,7 +58,7 @@ def daoru_material(path: str): raise ParseError(f'{i}行物料信息错误: {str(e)}') try: filters = {'type': type, 'name': name, 'specification': specification, - 'model': model, 'unit': unit} + 'model': model, 'unit__iexact': unit} if type in [20, 30]: filters['process'] = process default = filters