Browse Source

search/views.py: fix broken search

It was broken after inroducing different ordering in /browse/.
pull/1/head
Hidden Z 9 years ago
parent
commit
18266be4c2
  1. 6
      pyi2phosts/search/views.py

6
pyi2phosts/search/views.py

@ -1,10 +1,10 @@
from django.db.models import Q from django.db.models import Q
from pyi2phosts.postkey.models import i2phost from pyi2phosts.postkey.models import i2phost
from pyi2phosts.lib.generic import HostsListsView from pyi2phosts.lib.generic import LocalObjectList
class SearchedHostsListsView(HostsListsView): class SearchedHostsListsView(LocalObjectList):
""" Renders list of hosts matching search request """ """ Renders list of hosts matching search request """
def get_queryset(self): def get_queryset(self):
@ -14,5 +14,5 @@ class SearchedHostsListsView(HostsListsView):
return queryset return queryset
template_name = 'search_results.html' template_name = 'search_results.html'
template_object_name = 'host_list' context_object_name = 'host_list'
paginate_by = 40 paginate_by = 40

Loading…
Cancel
Save