Update device.py

change device name to pre_device ->> wrong name
This commit is contained in:
Mohammad Kiani
2025-08-27 20:56:16 +03:30
committed by GitHub
parent 680a469839
commit 499273486c

View File

@@ -108,7 +108,7 @@ class POSDeviceViewSet(viewsets.ModelViewSet, POSDeviceMixin):
return Response({
"message": "device pre-registered",
"device_identity": pre_device.device_identity,
"password": device.password,
"password": pre_device.password,
"provider": organization.name,
"provider_tell": '0214021',
}, status=status.HTTP_412_PRECONDITION_FAILED)