fix: mlogbw create bug2

This commit is contained in:
caoqianming 2025-02-28 16:30:47 +08:00
parent 9eb3abefc4
commit 12416a4f61
1 changed files with 1 additions and 1 deletions

View File

@ -597,7 +597,7 @@ class MlogbInViewSet(CreateModelMixin, UpdateModelMixin, DestroyModelMixin, Cust
pass pass
elif mlogbout.qct is None: elif mlogbout.qct is None:
try: try:
qctmat = QctMat.objects.get(material=material_out, qct__is_deleted=False, qct__tags__contains="process").order_by("-create_time") qctmat = QctMat.objects.get(material=material_out, qct__is_deleted=False, qct__tags__contains="process")
except QctMat.DoesNotExist: except QctMat.DoesNotExist:
qctmat = None qctmat = None
except QctMat.MultipleObjectsReturned: except QctMat.MultipleObjectsReturned: