Marco de descanso de error de atributo

define many=True in your serializer

Since your serializer needs to visit multiple objects in your queryset
Elvis