unassigned have only the devices than not exist in any lot

This commit is contained in:
Cayo Puigdefabregas 2022-01-11 11:46:47 +01:00
parent c213bddb8c
commit 062eed3d98

View file

@ -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,