diff --git a/apps/wpm/views.py b/apps/wpm/views.py index 1331ebba..291e2e76 100644 --- a/apps/wpm/views.py +++ b/apps/wpm/views.py @@ -521,6 +521,8 @@ class BatchStViewSet(ListModelMixin, CustomGenericViewSet): perms_map = {"get": "*"} queryset = BatchSt.objects.all() serializer_class = BatchStSerializer + ordering_fields = ["batch", "last_time", "update_time"] + ordering = ["batch"] filterset_fields = { "batch": ["exact", "contains"], "last_time": ["exact", "gte", "lte"],