[Fixed]-How can i show image field inside my RentListAPIView?

1👍

Have a look at Nested Relationships in django rest framework.

If the field is used to represent a to-many relationship, you should add the many=True flag to the serializer field.

What you have right now is this, which I think is not working and that’s why you have it commented.:

# gallery = GalleryListSerializer()

What you need is following:

gallery = GalleryListSerializer(many=True, read_only=True)
👤AKS

Leave a comment