diff --git a/app/routes/r_networks.py b/app/routes/r_networks.py index 98cb0ed..46f7056 100644 --- a/app/routes/r_networks.py +++ b/app/routes/r_networks.py @@ -251,7 +251,7 @@ def allocation_search(net_id): ## DECOM if 'used' in search: for alloc in db_alloc: - if alloc.is_used: + if alloc.is_used and alloc.is_dhcp == False: obj_list.append(alloc) else: diff --git a/app/templates/panel/allocations.html b/app/templates/panel/allocations.html index ad52870..b7fb664 100644 --- a/app/templates/panel/allocations.html +++ b/app/templates/panel/allocations.html @@ -8,7 +8,7 @@