From e49c9f62643ba2a9e6ee1c8244597117b7cf7e53 Mon Sep 17 00:00:00 2001 From: Mojtaba-z Date: Sat, 4 Oct 2025 10:09:33 +0330 Subject: [PATCH] change device assgihnrmnt keys --- apps/pos_device/web/api/v1/viewsets/device.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/pos_device/web/api/v1/viewsets/device.py b/apps/pos_device/web/api/v1/viewsets/device.py index 3662a16..bdc965d 100644 --- a/apps/pos_device/web/api/v1/viewsets/device.py +++ b/apps/pos_device/web/api/v1/viewsets/device.py @@ -221,8 +221,8 @@ class DeviceAssignmentViewSet(SoftDeleteMixin, viewsets.ModelViewSet): # set device status to assigned assignment.device.assigned_state = True - assignment.device.acceptor = data['device_acceptor'] - assignment.device.terminal = data['device_terminal'] + assignment.device.acceptor = data['acceptor'] + assignment.device.terminal = data['terminal'] if not assignment.device.password: assignment.device.password = ''.join(random.choices(string.digits, k=6)) assignment.device.save()