1
0
mirror of https://github.com/r4sas/py-i2phosts synced 2025-01-22 04:24:15 +00:00

search/views.py: fix broken search

It was broken after inroducing different ordering in /browse/.
This commit is contained in:
Hidden Z 2015-11-15 19:36:41 +00:00
parent d975295892
commit 18266be4c2

View File

@ -1,10 +1,10 @@
from django.db.models import Q
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 """
def get_queryset(self):
@ -14,5 +14,5 @@ class SearchedHostsListsView(HostsListsView):
return queryset
template_name = 'search_results.html'
template_object_name = 'host_list'
context_object_name = 'host_list'
paginate_by = 40