Browse Source

批量删除子用户

chenshibin 4 năm trước cách đây
mục cha
commit
aa460de46b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Controller/DeviceShare.py

+ 1 - 1
Controller/DeviceShare.py

@@ -253,7 +253,7 @@ class DeviceShareView(View):
             try:
                 # redisObj = RedisObject(db=8)
                 # redisObj.del_data(key='uid_qs_' + userID)
-                Device_Info.objects.filter(id__in=ids, primaryUserID=userID).update(isExist=0)
+                Device_Info.objects.filter(id__in=list(ids), primaryUserID=userID).update(isExist=0)
             except Exception as e:
                 return response.json(10, repr(e))
             else: