from rest_framework import serializers, viewsets, permissions, fields
from .models import Award
from core.serializers import UserAuthorSerializer

class AwardSerializer(serializers.ModelSerializer):
    author = UserAuthorSerializer()

    class Meta:
        model = Award
        fields = ('author', 'title', 'text')


f5bb05419ff3884ff7664b0f55c0ab125932ef7e
<mask token>

<mask token>


class AwardSerializer(serializers.ModelSerializer):
    <mask token>


    class Meta:
        model = Award
        fields = 'author', 'title', 'text'

<mask token>


class AwardSerializer(serializers.ModelSerializer):
    author = UserAuthorSerializer()


    class Meta:
        model = Award
        fields = 'author', 'title', 'text'

from rest_framework import serializers, viewsets, permissions, fields
from .models import Award
from core.serializers import UserAuthorSerializer


class AwardSerializer(serializers.ModelSerializer):
    author = UserAuthorSerializer()


    class Meta:
        model = Award
        fields = 'author', 'title', 'text'

from rest_framework import serializers, viewsets, permissions, fields
from .models import Award
from core.serializers import UserAuthorSerializer

class AwardSerializer(serializers.ModelSerializer):
    author = UserAuthorSerializer()

    class Meta:
        model = Award
        fields = ('author', 'title', 'text')

