报错代码 datas=FoodList.objects.all().sorts('sales_num') 解决方法将sorts改为order_by FoodList.objects.all().order_by('sales_num')