mirror of https://github.com/veops/cmdb.git
relation view define [done]
This commit is contained in:
parent
8ca93d72f7
commit
38b4293a33
|
@ -73,4 +73,4 @@ ui/npm-debug.log*
|
||||||
ui/yarn-debug.log*
|
ui/yarn-debug.log*
|
||||||
ui/yarn-error.log*
|
ui/yarn-error.log*
|
||||||
ui/yarn.lock
|
ui/yarn.lock
|
||||||
|
ui/package-lock.json
|
||||||
|
|
|
@ -80,9 +80,9 @@ class PreferenceRelationApiView(APIView):
|
||||||
def post(self):
|
def post(self):
|
||||||
name = request.values.get("name")
|
name = request.values.get("name")
|
||||||
cr_ids = request.values.get("cr_ids")
|
cr_ids = request.values.get("cr_ids")
|
||||||
res = PreferenceManager.create_or_update_relation_view(name, cr_ids)
|
views, id2type = PreferenceManager.create_or_update_relation_view(name, cr_ids)
|
||||||
|
|
||||||
return self.jsonify(res)
|
return self.jsonify(views, id2type)
|
||||||
|
|
||||||
def put(self):
|
def put(self):
|
||||||
return self.post()
|
return self.post()
|
||||||
|
|
Loading…
Reference in New Issue