0
django-rest-framework
如何使用大於篩選器篩選datetimefield
。Django rest框架按日期時間字段篩選
class RestaurantList(generics.ListAPIView):
serializer_class = RestaurantSerializer
def get_queryset(self):
#This returns equals but if I use the > sign it does not work
return Restaurant.objects.filter(last_update_time = "2016-08-03")