Skip to content

Commit af148b7

Browse files
authored
fix(api): common department edit method (#356)
* fix(api): common department edit method * fix(api): common department edit method
1 parent 5e79aab commit af148b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmdb-api/api/views/common_setting/department.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def post(self):
6262
class DepartmentIDView(APIView):
6363
url_prefix = (f'{prefix}/<int:_id>',)
6464

65-
def get(self, _id):
65+
def put(self, _id):
6666
form = DepartmentForm(MultiDict(request.json))
6767
if not form.validate():
6868
abort(400, ','.join(['{}: {}'.format(filed, ','.join(msg))

0 commit comments

Comments
 (0)