diff --git a/api/views.py b/api/views.py index 4a54d4c..4d5f09f 100644 --- a/api/views.py +++ b/api/views.py @@ -171,7 +171,7 @@ class UploadTaskListView(mixins.UserOrganizationMixin, generics.ListAPIView): """ serializer_class = serializers.UploadTaskSerializer - queryset = models.UploadTask.objects.all() + queryset = models.UploadTask.objects.all().order_by("-created") permission_classes = [permissions.IsAuthenticated] diff --git a/gmn/views.py b/gmn/views.py index cab5994..f70ff50 100644 --- a/gmn/views.py +++ b/gmn/views.py @@ -9,7 +9,7 @@ class GMNListView(mixins.UserOrganizationMixin, generics.ListAPIView): serializer_class = serializers.GMNSerializer - queryset = gmn_models.GMN.objects.all() + queryset = gmn_models.GMN.objects.all().order_by("-created") permission_classes = [permissions.IsAuthenticated] @@ -27,7 +27,7 @@ class GMNDetailView(mixins.UserOrganizationMixin, generics.RetrieveAPIView): class MeasuringpointListView(mixins.UserOrganizationMixin, generics.ListAPIView): serializer_class = serializers.MeasuringpointSerializer - queryset = gmn_models.Measuringpoint.objects.all() + queryset = gmn_models.Measuringpoint.objects.all().order_by("-created") permission_classes = [permissions.IsAuthenticated] diff --git a/gmw/views.py b/gmw/views.py index 8fea898..32c3e52 100644 --- a/gmw/views.py +++ b/gmw/views.py @@ -9,7 +9,7 @@ class GMWListView(mixins.UserOrganizationMixin, generics.ListAPIView): serializer_class = serializers.GMWSerializer - queryset = gmw_models.GMW.objects.all() + queryset = gmw_models.GMW.objects.all().order_by("-created") permission_classes = [permissions.IsAuthenticated] @@ -27,7 +27,7 @@ class GMWDetailView(mixins.UserOrganizationMixin, generics.RetrieveAPIView): class MonitoringTubeListView(mixins.UserOrganizationMixin, generics.ListAPIView): serializer_class = serializers.MonitoringTubeSerializer - queryset = gmw_models.MonitoringTube.objects.all() + queryset = gmw_models.MonitoringTube.objects.all().order_by("-created") permission_classes = [permissions.IsAuthenticated]