# up order by time in count page

This commit is contained in:
xianfuxing 2018-08-01 16:51:06 +08:00
parent f277427113
commit e1b5056346
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class DeviceCountListAPIView(ListAPIView):
filter_backends = [SearchFilter, OrderingFilter]
pagination_class = PostPageNumberPagination
search_fields = ['device_id']
queryset = DeviceCount.objects.all()
queryset = DeviceCount.objects.all().order_by('-data_time')
class DeviceInfoListAPIView(ListAPIView):