Fix typo in device activation condition in POSDeviceViewSet
This commit is contained in:
@@ -66,7 +66,7 @@ class POSDeviceViewSet(viewsets.ModelViewSet, POSDeviceMixin):
|
||||
device.is_activated = True
|
||||
device.save()
|
||||
|
||||
if device.is_activatedand and device.assigned_state:
|
||||
if device.is_activated and device.assigned_state:
|
||||
# when device is logged in, its has an organization owner client, if not it will show error
|
||||
device_owner_org = self.get_device_organization()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user