feat: 定义batchst默认排序为batch
This commit is contained in:
parent
bc6baca698
commit
d9a1512a92
|
@ -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"],
|
||||
|
|
Loading…
Reference in New Issue