Attributfehlerruhe Framework

define many=True in your serializer

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