Procházet zdrojové kódy

更新物联网卡排序

yf_fyh před 2 roky
rodič
revize
0ea4b4becf
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      apps/IOTCard/views.py

+ 1 - 1
apps/IOTCard/views.py

@@ -33,7 +33,7 @@ def time_dif(checkdatetime):
 class PlatformIOTCardViewSet(viewsets.ModelViewSet):
     serializer_class = PlatSimInfoSerializer
     pagination_class = CustomPagination
-    queryset = PlatSimInfo.objects.all().order_by("-expiry_date")
+    queryset = PlatSimInfo.objects.all().order_by("-id")
 
     def list(self, request, *args, **kwargs):
         device_type = request.query_params.get("device_type")