fix(api): common department allow parent

This commit is contained in:
hu.sima 2024-01-03 15:08:37 +08:00
parent e0a22e8eee
commit 05fd73e9e6
1 changed files with 1 additions and 1 deletions

View File

@ -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)