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:
parent
d975295892
commit
18266be4c2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user