feat: get_qct 未有检验模板
This commit is contained in:
parent
05ea28f334
commit
9b4a44be51
|
@ -64,7 +64,9 @@ class QctViewSet(CustomModelViewSet):
|
||||||
sr.is_valid(raise_exception=True)
|
sr.is_valid(raise_exception=True)
|
||||||
vdata = sr.validated_data
|
vdata = sr.validated_data
|
||||||
qct = Qct.get(vdata["material"], vdata["tag"], vdata.get("type", None))
|
qct = Qct.get(vdata["material"], vdata["tag"], vdata.get("type", None))
|
||||||
return Response(QctDetailSerializer(instance=qct).data)
|
if qct:
|
||||||
|
return Response(QctDetailSerializer(instance=qct).data)
|
||||||
|
return Response()
|
||||||
|
|
||||||
|
|
||||||
class QctTestItemViewSet(CustomModelViewSet):
|
class QctTestItemViewSet(CustomModelViewSet):
|
||||||
|
|
Loading…
Reference in New Issue