update order_by

FFIB 1 年間 前
コミット
216872a16d
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      api/mch_views.py

+ 1 - 1
api/mch_views.py

@@ -528,7 +528,7 @@ def consumer_model_list(request):
528 528
         return response(UserStatusCode.USER_NOT_FOUND)
529 529
 
530 530
     # 返回型号列表
531
-    models = ModelInfo.objects.filter(shot_type_id__isnull=False, status=True).order_by('-shot_member_name', '-model_mount')
531
+    models = ModelInfo.objects.filter(shot_type_id__isnull=False, status=True).order_by('-shot_type_id', '-model_mount')
532 532
     models = [model.consumer_shot_data for model in models]
533 533
 
534 534
     return response(200, 'Get Model List Success', u'获取型号列表成功', {