kerangka kerja kesalahan atribut

define many=True in your serializer

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