fix: 获取检验模板只用单个
This commit is contained in:
parent
d9f66d2970
commit
57dfab3bb9
|
@ -61,7 +61,7 @@ class QctViewSet(CustomModelViewSet):
|
||||||
"""
|
"""
|
||||||
data = request.data
|
data = request.data
|
||||||
qct = Qct.get(data["material"], data["tag"])
|
qct = Qct.get(data["material"], data["tag"])
|
||||||
return QctSerializer(instance=qct).data
|
return Response(QctSerializer(instance=qct).data)
|
||||||
|
|
||||||
|
|
||||||
class QctTestItemViewSet(CustomModelViewSet):
|
class QctTestItemViewSet(CustomModelViewSet):
|
||||||
|
|
Loading…
Reference in New Issue