diff --git a/apps/pos_device/pos/api/v1/viewsets/device.py b/apps/pos_device/pos/api/v1/viewsets/device.py index 871d762..af8a507 100644 --- a/apps/pos_device/pos/api/v1/viewsets/device.py +++ b/apps/pos_device/pos/api/v1/viewsets/device.py @@ -59,7 +59,7 @@ class POSDeviceViewSet(viewsets.ModelViewSet, POSDeviceMixin): # activate device if device: - if not device.is_activated or not device.pre_registered and device.assigned_state is True: + if (not device.is_activated or not device.pre_registered) and device.assigned_state: device.is_activated = True device.save()