From 3c2daad1e40e8bbb77690e7fc4c981c0cc7d5e76 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Fri, 7 Mar 2025 09:40:05 +0800 Subject: [PATCH] update --- account/api.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/account/api.py b/account/api.py index 080f0aa..10a3576 100644 --- a/account/api.py +++ b/account/api.py @@ -84,10 +84,6 @@ def batch_create(request, payload: BatchUsersIn): user.set_password(password) user_list.append(user) - existing_users = User.objects.filter(username__in=usernames) - if existing_users.exists(): - raise HttpError(400, "有些用户已经存在,创建失败") - for user in user_list: profile_list.append(Profile(user=user))