Skip to content

Commit

Permalink
fix(api): common department edit method (#356)
Browse files Browse the repository at this point in the history
* fix(api): common department edit method

* fix(api): common department edit method
  • Loading branch information
simontigers authored Jan 3, 2024
1 parent 5e79aab commit af148b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmdb-api/api/views/common_setting/department.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def post(self):
class DepartmentIDView(APIView):
url_prefix = (f'{prefix}/<int:_id>',)

def get(self, _id):
def put(self, _id):
form = DepartmentForm(MultiDict(request.json))
if not form.validate():
abort(400, ','.join(['{}: {}'.format(filed, ','.join(msg))
Expand Down

0 comments on commit af148b7

Please sign in to comment.