[Fixed]-Stuck with nested serializer using Django Rest Framework and default user

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.

Leave a comment