unassigned have only the devices than not exist in any lot
This commit is contained in:
parent
c213bddb8c
commit
062eed3d98
|
@ -25,7 +25,7 @@ class DeviceListView(View):
|
|||
else:
|
||||
devices = Device.query.filter(
|
||||
Device.owner_id == current_user.id).filter(
|
||||
Device.type.in_(filter_types))
|
||||
Device.type.in_(filter_types)).filter(Device.lots == None)
|
||||
|
||||
context = {'devices': devices,
|
||||
'lots': lots,
|
||||
|
|
Reference in New Issue