|
@@ -152,7 +152,8 @@ class EquipmentFamilyView(View):
|
|
|
return response.json(444, {'param': 'nick_name, serial_number, device_type'})
|
|
|
device_info_qs = Device_Info.objects.filter(serial_number=serial_number, isShare=False)
|
|
|
if device_info_qs:
|
|
|
- qs = device_info_qs.values('userID__NickName', 'NickName', 'userID_id')
|
|
|
+ qs = device_info_qs.values('NickName', 'userID_id', 'userID__userEmail', 'userID__phone',
|
|
|
+ 'userID__username', 'userID__NickName', )
|
|
|
nickname = qs[0]['NickName']
|
|
|
device_user_id = qs[0]['userID_id']
|
|
|
if device_user_id == user_id:
|