I've been looking for a way to return specific number of object in the json response when I use the 'GET' method.
serializer_class = CursaSerializer
sport = self.kwargs['sport']
return Cursa.objects.filter(esport=sport, visible=True)
Cursa.objects.filter returns a
list, simply limited the number of objects to at most 50 by:
This is known as splicing