fix login bug in if state of (and or)
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user