Revision a96e84cf snf-cyclades-app/synnefo/api/util.py
b/snf-cyclades-app/synnefo/api/util.py | ||
---|---|---|
212 | 212 |
|
213 | 213 |
try: |
214 | 214 |
network_id = int(network_id) |
215 |
objects = Network.objects |
|
215 |
objects = Network.objects.prefetch_related("subnets")
|
|
216 | 216 |
if for_update: |
217 | 217 |
objects = objects.select_for_update() |
218 | 218 |
network = objects.get(Q(userid=user_id) | Q(public=True), |
Also available in: Unified diff