yf_fyh 2 лет назад
Родитель
Сommit
0ea4b4becf
1 измененных файлов с 1 добавлено и 1 удалено
  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")