fix - filter device versions list by enable true in device login
This commit is contained in:
@@ -59,7 +59,10 @@ class POSDeviceViewSet(viewsets.ModelViewSet, POSDeviceMixin):
|
||||
organization = pos_models.Organization.objects.get(en_name=psp_name)
|
||||
|
||||
# device version
|
||||
device_version = pos_models.DeviceVersion.objects.filter(organization=organization).order_by('-code')
|
||||
device_version = pos_models.DeviceVersion.objects.filter(
|
||||
organization=organization,
|
||||
enable=True
|
||||
).order_by('-code')
|
||||
|
||||
device = self.device_queryset.filter(serial=serial).first()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user