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
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class DeviceListView(View):
else: else:
devices = Device.query.filter( devices = Device.query.filter(
Device.owner_id == current_user.id).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, context = {'devices': devices,
'lots': lots, 'lots': lots,