update select_by_user()
diff --git a/planetstack/core/models/network.py b/planetstack/core/models/network.py
index 320e56b..57d5530 100644
--- a/planetstack/core/models/network.py
+++ b/planetstack/core/models/network.py
@@ -58,8 +58,9 @@
if user.is_admin:
qs = Network.objects.all()
else:
- slice_ids = [s.id for s in Slice.select_by_user(user)]
- qs = Network.objects.filter(id__in=slice_ids)
+ slices = Slice.select_by_user(user)
+ #slice_ids = [s.id for s in Slice.select_by_user(user)]
+ qs = Network.objects.filter(owner__in=slices)
return qs
class NetworkSlice(PlCoreBase):