[Answered ]-Django-allauth – RESTful API return all email address belonging to a user

2👍

Hope this will work

class EmailSerializer(serializers.ModelSerializer):
    user_info = serializers.RelatedField(source='usermodel', read_only=True)

    class Meta:
        model = EmailAddress
        fields = ('id', 'email', 'user_info')
👤Anoop

Leave a comment