方法
get_queryset
必须返回queryset对象。在您的例子中,您试图返回一个httpresponse。
但在您的情况下,不需要使用分页类。这个
ListView
如果您指定
paginate_by
属性。
如果要在模板中使用额外的上下文
def get_context_data(self, **kwargs):
context = super(JobListIndex2, self).get_context_data(**kwargs)
context['title'] = 'Jobs'
return context