阅读背景:

django对原始搜索结果进行分页

来源:互联网 

I'm using ListView to display the search result, and using forms to let user input search values, here is the problem: when I get some search results, say, 50 items, and I set the item_per_page 30, so I got two pages, but now when I click the next page link, it forgets the former search request and shows me all of the items in page 2, how to fix this? My code is below:I'm using ListView to display the search result




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: