class Shipment(ListView):
template_name = "listing-base.html"
model = Shipment
context_object_name = "shipment_list"
paginate_by = 25
Run Code Online (Sandbox Code Playgroud)
输出是这样的
Previous Page 1 of 7 NEXT PAGE
Run Code Online (Sandbox Code Playgroud)
相反我需要
Previous Page 1 2 ...5..7 NEXT PAGE
Run Code Online (Sandbox Code Playgroud)
请帮忙提前致谢”