diff --git a/apps/power/views.py b/apps/power/views.py index 201fbe4..34c7b40 100644 --- a/apps/power/views.py +++ b/apps/power/views.py @@ -54,7 +54,7 @@ def add_user_power_list(): } # 删除除去柜子权限外的所有权限 BllModuleRelation().delete( - and_(EntityModuleRelation.object_id == user_id) + EntityModuleRelation.object_id == user_id ) inster_module_list = [] for k,v in inster_dic.items():