yf_fyh пре 2 година
родитељ
комит
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")