While using Django-REST-Framework, I am not able to display selected fields in a nested serialized object.
I am correctly able to serialize the entirety of the Ad
Ad
Model Outlet has an "address" field, not an outlet_address. I would advise to set your serializer like this:
class OutletSerializer(serializers.ModelSerializer): address = AddressSerializer(many=False) class Meta: model = Outlet fields = ('id', 'name', 'thumbnail', 'address') depth = 2