mirror of https://github.com/veops/cmdb.git
fix(api): common department edit method (#356)
* fix(api): common department edit method * fix(api): common department edit method
This commit is contained in:
parent
5e79aab93d
commit
af148b7c8f
|
@ -62,7 +62,7 @@ class DepartmentView(APIView):
|
|||
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))
|
||||
|
|
Loading…
Reference in New Issue