lensman_integral_list add order_by

FFIB 1 anno fa
parent
commit
f092e316c1
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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