From 5b76973d9c228cb7b33417f5c594238710509217 Mon Sep 17 00:00:00 2001 From: mkg <1650473152@qq.com> Date: Fri, 16 Jul 2021 17:45:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=9B=A0=E5=8E=BB=E9=99=A4cu?= =?UTF-8?q?rd=E5=B1=82=E5=A4=8D=E5=88=B6=E9=94=99=E8=AF=AF=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E7=9A=84=E5=A4=9A=E4=BD=99=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- applications/view/admin/user.py | 1 - 1 file changed, 1 deletion(-) diff --git a/applications/view/admin/user.py b/applications/view/admin/user.py index 393e839..f91129b 100644 --- a/applications/view/admin/user.py +++ b/applications/view/admin/user.py @@ -73,7 +73,6 @@ def save(): user = User(username=username, realname=real_name) user.set_password(password) db.session.add(user) - user = User.query.filter_by(id=id).first() roles = Role.query.filter(Role.id.in_(role_ids)).all() for r in roles: user.role.append(r)