mirror of https://github.com/veops/cmdb.git
fix type_attribute update api exception
This commit is contained in:
parent
c93e8c9ff1
commit
138845c0e2
|
@ -141,7 +141,7 @@ class CITypeAttributeView(APIView):
|
|||
:param type_id:
|
||||
:return:
|
||||
"""
|
||||
attributes = request.values.get("attributes")
|
||||
attributes = request.json.get("attributes")
|
||||
current_app.logger.debug(attributes)
|
||||
if not isinstance(attributes, list):
|
||||
return abort(400, "attributes must be list")
|
||||
|
|
Loading…
Reference in New Issue