From 4261f6fb578dafbfc7932403ed50169a5ec80776 Mon Sep 17 00:00:00 2001 From: simontigers <47096077+simontigers@users.noreply.github.com> Date: Wed, 3 Jan 2024 15:19:08 +0800 Subject: [PATCH] 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 --- cmdb-api/api/views/common_setting/department.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmdb-api/api/views/common_setting/department.py b/cmdb-api/api/views/common_setting/department.py index c35538e..ba4091a 100644 --- a/cmdb-api/api/views/common_setting/department.py +++ b/cmdb-api/api/views/common_setting/department.py @@ -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)