feat: 获取qct type参数获取错误
This commit is contained in:
parent
c35cdb6d0a
commit
a91b75ae7a
|
@ -63,7 +63,7 @@ class QctViewSet(CustomModelViewSet):
|
|||
sr = QctGetSerializer(data=request.data)
|
||||
sr.is_valid(raise_exception=True)
|
||||
vdata = sr.validated_data
|
||||
qct = Qct.get(vdata["material"], vdata["tag"], vdata.get("tag", None))
|
||||
qct = Qct.get(vdata["material"], vdata["tag"], vdata.get("type", None))
|
||||
return Response(QctDetailSerializer(instance=qct).data)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue