from member import models
from rest_framework import serializers


# TODO - Pull avatar_url
class Member(serializers.ModelSerializer):
    # pylint: disable=too-few-public-methods
    avatar_url = serializers.URLField(source='img_url', read_only=True)

    class Meta(object):
        # pylint: disable=too-few-public-methods
        model = models.Member
        fields = ('id', 'avatar_url', 'name')


class MemberSummary(serializers.ModelSerializer):
    # pylint: disable=too-few-public-methods
    class Meta(object):
        # pylint: disable=too-few-public-methods
        model = models.Member
        fields = ('id', 'name')
