Update device.py
change device name to pre_device ->> wrong name
This commit is contained in:
@@ -108,7 +108,7 @@ class POSDeviceViewSet(viewsets.ModelViewSet, POSDeviceMixin):
|
|||||||
return Response({
|
return Response({
|
||||||
"message": "device pre-registered",
|
"message": "device pre-registered",
|
||||||
"device_identity": pre_device.device_identity,
|
"device_identity": pre_device.device_identity,
|
||||||
"password": device.password,
|
"password": pre_device.password,
|
||||||
"provider": organization.name,
|
"provider": organization.name,
|
||||||
"provider_tell": '0214021',
|
"provider_tell": '0214021',
|
||||||
}, status=status.HTTP_412_PRECONDITION_FAILED)
|
}, status=status.HTTP_412_PRECONDITION_FAILED)
|
||||||
|
|||||||
Reference in New Issue
Block a user