刚学习Django写了一个搜索的视图函数,想对搜索内容进行分页,现在有个问题,搜索内容提交后可以正常分页并显示第一页,选择第二个页时由于GET内容没传过去页面就显示不出来,请问哪个大神有好的解决办法
这是我的控件部分:
<form action="." method="GET">
<fieldset id="search_fieldset" style="paddng:20px;background:#3CF; border:#ccc 1px solid">
<input type="text" name="q" value="{{query | escape}}" class="input_text">
<input type="submit" value="Search" class="search_button">
</fieldset>
</form>