Explicit classname in search to get faster
This commit is contained in:
parent
4e12de175d
commit
f648105f83
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ class Search(TemplateView, PaginatorMixin):
|
||||||
q = self.request.GET.get('q')
|
q = self.request.GET.get('q')
|
||||||
maps = []
|
maps = []
|
||||||
if q:
|
if q:
|
||||||
maps = shortquery(Q(fulltext__containswords=q))
|
maps = shortquery(Q(classname='Map') & Q(fulltext__containswords=q))
|
||||||
maps = self.paginate(maps)
|
maps = self.paginate(maps)
|
||||||
kwargs.update({
|
kwargs.update({
|
||||||
'maps': maps,
|
'maps': maps,
|
||||||
|
|
Loading…
Reference in a new issue