# 更新排序字段
This commit is contained in:
parent
1c84e52c27
commit
ce32e2cd00
|
@ -73,7 +73,7 @@ class DeviceTempLogListAPIView(ListAPIView, RoleMixin, DeviceListMixin):
|
|||
pagination_class = DeviceLogHistoryPagination
|
||||
search_fields = ['device_id']
|
||||
filterset_fields = ['device_id']
|
||||
ordering_fields = ['-last_time']
|
||||
ordering_fields = ['create_time']
|
||||
|
||||
def get_queryset(self, *args, **kwargs):
|
||||
user_roles = self.get_role()
|
||||
|
|
Loading…
Reference in New Issue