diff --git a/apps/wpm/views.py b/apps/wpm/views.py index a2b9557c..91a7703d 100644 --- a/apps/wpm/views.py +++ b/apps/wpm/views.py @@ -382,6 +382,9 @@ class OtherLogViewSet(CustomModelViewSet): """ queryset = OtherLog.objects.all() serializer_class = OtherLogSerializer - filterset_fields = ['product'] + filterset_fields = { + "product": ["exact"], + "handle_date": ["exact", "gte", "lte"] + } search_fields = ['product'] ordering = ['-handle_date', '-create_time']