guanhailong пре 2 година
родитељ
комит
736be89e19
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Controller/SensorGateway/EquipmentFamilyController.py

+ 1 - 1
Controller/SensorGateway/EquipmentFamilyController.py

@@ -1018,7 +1018,7 @@ class EquipmentFamilyView(View):
         if not permission or permission == '003':
             return response.json(404)
         family_room_device_qs = FamilyRoomDevice.objects \
-            .filter(Q(family_id=family_id), ~Q(device_id__isExist=2), Q(device__userID=user_id)) \
+            .filter(Q(family_id=family_id), ~Q(device_id__isExist=2)) \
             .values().order_by('sort', '-device__data_joined')
         if not family_room_device_qs.exists():
             return response.json(0, device_dict)