报错原因 :分页一定要排序
如:
def get_queryset(self):
return Goods.objects.filter(classify=2, status=1).order_by('-id')
没有 order_by() 就会报错
报错原因 :分页一定要排序
如:
def get_queryset(self):
return Goods.objects.filter(classify=2, status=1).order_by('-id')
没有 order_by() 就会报错