Merge branch 'master' of github.com:open-cloud/xos
diff --git a/xos/core/models/network.py b/xos/core/models/network.py
index c9ae214..2572847 100644
--- a/xos/core/models/network.py
+++ b/xos/core/models/network.py
@@ -159,11 +159,11 @@
@staticmethod
def select_by_user(user):
if user.is_admin:
- qs = NetworkControllers.objects.all()
+ qs = ControllerNetwork.objects.all()
else:
slices = Slice.select_by_user(user)
networks = Network.objects.filter(owner__in=slices)
- qs = NetworkControllers.objects.filter(network__in=networks)
+ qs = ControllerNetwork.objects.filter(network__in=networks)
return qs
class NetworkSlice(PlCoreBase):