from .models import Country, Match, Player
from rest_framework import serializers

class MatchSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = Match
        #fields = ('match','country_one','country_two','scores','penalties','man_of_the_match','match_date','match_location')

class CountrySerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = Country
        #fields = ('country', 'goals', 'coach', 'captain', 'top_scorer', 'scorers', 'players')

class PlayerSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = Player
        #fields = ('player', 'team', 'position', 'dob', 'goals', 'club')
        #read_only_fields = ('player', 'position', 'goals', 'club')

d62739d8334f7a2557e460e6f5ba7989b98db363
<mask token>


class PlayerSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Player

<mask token>


class CountrySerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Country


class PlayerSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Player

<mask token>


class MatchSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Match


class CountrySerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Country


class PlayerSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Player

from .models import Country, Match, Player
from rest_framework import serializers


class MatchSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Match


class CountrySerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Country


class PlayerSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Player

from .models import Country, Match, Player
from rest_framework import serializers

class MatchSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = Match
        #fields = ('match','country_one','country_two','scores','penalties','man_of_the_match','match_date','match_location')

class CountrySerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = Country
        #fields = ('country', 'goals', 'coach', 'captain', 'top_scorer', 'scorers', 'players')

class PlayerSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = Player
        #fields = ('player', 'team', 'position', 'dob', 'goals', 'club')
        #read_only_fields = ('player', 'position', 'goals', 'club')
