Commit 89774601 authored by Stauros Kroustouris's avatar Stauros Kroustouris

fix broken query in tags

parent c0d435a2
import json
import rrdtool
import time
from django.db.models import Avg, Min, Max
from django.core.urlresolvers import reverse
from django.conf import settings
from django.shortcuts import get_object_or_404
from network.models import City, Location, Ifce
import gevent
from network.models import City, Location
institutions = {
......@@ -66,7 +62,7 @@ def get_all_pops(url, tag=None):
children = parent.location_set.filter(geo_lat__gt=0)
if tag:
children = children.filter(peersite__peer_id__peer_tag__icontains=tag)
children = children.filter(peersite_set__peer_id__peer_tag__icontains=tag)
if not children:
resp = {}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment