feat: get_from_mb 返回更多信息
This commit is contained in:
parent
0157daa0ab
commit
ebf3bbe257
|
@ -34,4 +34,6 @@ class LableMatViewSet(CustomListModelMixin, RetrieveModelMixin, CustomGenericVie
|
||||||
"supplier": mb.supplier
|
"supplier": mb.supplier
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
return Response({"label": f"mat:{obj.id}"})
|
rdata = LabelMatSerializer(obj).data
|
||||||
|
rdata["code_label"] = f"mat:{obj.id}"
|
||||||
|
return Response(rdata)
|
Loading…
Reference in New Issue