Explorar o código

uidset delete by device info delte

chenjunkai %!s(int64=6) %!d(string=hai) anos
pai
achega
501748ce6b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Controller/EquipmentManager.py

+ 1 - 1
Controller/EquipmentManager.py

@@ -573,7 +573,7 @@ def deleteInterface(request):
                 if up_qs.count() > 1:
                     UidPushModel.objects.filter(uid_set__uid=uid, userID_id=userID).delete()
                 else:
-                    UidSetModel.objects.filter(uid=uid).delete()
+                    up_qs.delete()
                 # b.分享获得用户假删除
                 ud_dv_qs = Device_Info.objects.filter(UID=uid, isShare=True, primaryUserID=userID)
                 if ud_dv_qs.exists():