summaryrefslogtreecommitdiff
path: root/commcrawler/lookups.py
diff options
context:
space:
mode:
Diffstat (limited to 'commcrawler/lookups.py')
-rw-r--r--commcrawler/lookups.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/commcrawler/lookups.py b/commcrawler/lookups.py
index 106a69a..396490b 100644
--- a/commcrawler/lookups.py
+++ b/commcrawler/lookups.py
@@ -14,7 +14,7 @@ class TargetLookup(LookupChannel):
def get_query(self, q, request):
query = Q()
for term in q.strip().split(' '):
- subquery = Q(name__icontains=term)
+ subquery = Q(name__icontains=term) | Q(url__icontains=term)
query &= subquery
return self.model.objects.filter(query).order_by('name')[:20]