# up order by time in count page
This commit is contained in:
parent
f277427113
commit
e1b5056346
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue