[Answer]-Django rest frame getting values from all tables where the PK is referenced as FK

1👍

I think that you might need to include many=true and change the source to the be related_name in the StudioProfileSerializer:

class StudioProfileSerializer(serializers.ModelSerializer):
    services = StudioServicesSerializer(many = true, source = "services")
    pic_of_studio = StudioPicSerializer(many = true, source = "pic_of_studio")
    class Meta:
        model = StudioProfile
        fields = ( 'address_1', 'address_2','services','pic_of_studio' )

Leave a comment