diff --git a/pyi2phosts/search/views.py b/pyi2phosts/search/views.py index 71883c5..0e7b7b4 100644 --- a/pyi2phosts/search/views.py +++ b/pyi2phosts/search/views.py @@ -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