mirror of https://github.com/veops/cmdb.git
fix(api): common department allow parent (#358)
* fix(api): common department edit method * fix(api): common department edit method * fix(api): common department allow parent
This commit is contained in:
parent
c98199e98e
commit
4261f6fb57
|
@ -85,7 +85,7 @@ class DepartmentIDView(APIView):
|
|||
class DepartmentParentView(APIView):
|
||||
url_prefix = (f'{prefix}/allow_parent',)
|
||||
|
||||
def put(self):
|
||||
def get(self):
|
||||
department_id = request.args.get('department_id', None)
|
||||
if department_id is None:
|
||||
abort(400, ErrFormat.department_id_is_required)
|
||||
|
|
Loading…
Reference in New Issue