lensman_integral_list add order_by

FFIB hace 1 año
padre
commit
f092e316c1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      api/lensman_mp_views.py

+ 1 - 1
api/lensman_mp_views.py

@@ -47,7 +47,7 @@ def lensman_integral_list(request):
47 47
   except LensmanInfo.DoesNotExist:
48 48
     return response(200, 'Lensman Not Found', u'摄影师不存在')
49 49
   
50
-  integrals = LensmanIntegralIncomeExpensesInfo.objects.filter(user_id=user_id, status=True)
50
+  integrals = LensmanIntegralIncomeExpensesInfo.objects.filter(user_id=user_id, status=True).order_by('-pk')
51 51
 
52 52
   integrals = [integral.userdata for integral in integrals]
53 53