serialziers.py
class ProfileSerializer(ModelSerializer): user = UserSerializer(read_only=True) class Meta: model = Profile fields = (