mirror of https://github.com/snachodog/mybuddy.git
modify pumping view set for start/end/duration
This commit is contained in:
parent
aac2400f85
commit
725cfa77ba
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue