mirror of https://github.com/veops/cmdb.git
Update ci_type.py
fix exception rasied by request.values when request's content-type is json
This commit is contained in:
parent
1e4e09c6c7
commit
9d9d885cdb
|
@ -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