fix: mlogbw create bug2
This commit is contained in:
parent
9eb3abefc4
commit
12416a4f61
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue