peng 1 год назад
Родитель
Сommit
c972c37ab7
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Controller/EquipmentManagerV3.py

+ 1 - 1
Controller/EquipmentManagerV3.py

@@ -1197,7 +1197,7 @@ class EquipmentManagerV3(View):
         if not uid:
             return response.json(444)
         try:
-            device_qs = Device_Info.objects.filter(UID=uid).values('userID', 'audioVideoButton', 'NickName')
+            device_qs = Device_Info.objects.filter(UID=uid).values('userID', 'audioVideoButton', 'userID__username')
             return response.json(0, list(device_qs))
         except Exception as e:
             return response.json(500, repr(e))