1.Django分页出现UnorderedObjectListWarning: Pagination may yield inconsistent results with an unordered ob
将
messeges = MessegeModel.objects.all()
变为
messeges = MessegeModel.objects.get_queryset().order_by('id')
1.Django分页出现UnorderedObjectListWarning: Pagination may yield inconsistent results with an unordered ob
将
messeges = MessegeModel.objects.all()
变为
messeges = MessegeModel.objects.get_queryset().order_by('id')