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

+ 1 - 1
Controller/EquipmentManager.py

@@ -569,7 +569,7 @@ def deleteInterface(request):
                 # a.主用户删除设备
                 dv_qs.delete()
                 # 删除设备影子信息uid_set   外键关联删除设备推送配置信息 uid_push
-                up_qs = UidPushModel.objects.filter(uid=uid)
+                up_qs = UidPushModel.objects.filter(uid_set__uid=uid)
                 if up_qs.count > 1:
                     UidPushModel.objects.filter(uid_set__uid=uid, userID_id=userID).delete()
                 else: