modify pumping view set for start/end/duration

This commit is contained in:
John Merlie 2023-07-02 12:20:33 -04:00 committed by Christopher Charbonneau Wells
parent aac2400f85
commit 725cfa77ba
1 changed files with 2 additions and 2 deletions

View File

@ -82,8 +82,8 @@ class PumpingViewSet(viewsets.ModelViewSet):
queryset = models.Pumping.objects.all() queryset = models.Pumping.objects.all()
serializer_class = serializers.PumpingSerializer serializer_class = serializers.PumpingSerializer
filterset_class = filters.PumpingFilter filterset_class = filters.PumpingFilter
ordering_fields = ("amount", "time") ordering_fields = ("amount", "duration", "end", "start")
ordering = "-time" ordering = "-start"
class SleepViewSet(viewsets.ModelViewSet): class SleepViewSet(viewsets.ModelViewSet):