Framework d'erreur d'erreur d'attribut

define many=True in your serializer

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