1👍
✅
By default DRF will look at an attribute on the User
model named after the serializer’s field (member
here). However the related name is profile
.
This can be worked around by passing the source="profile"
to your MemberProfileSerializer
.
Source:stackexchange.com