from .models import Answer
from rest_framework import serializers


class AnswerSerializer(serializers.ModelSerializer):
    id = serializers.IntegerField(required=False)


    class Meta:
        model = Answer
        fields = ['id']


class AnswersSerializer(serializers.ModelSerializer):
    id = serializers.IntegerField(required=False)


    class Meta:
        model = Answer
        fields = ['id', 'answer', 'isRight']

6894e2bdb09631c18f0e46efc8e15e0c8f199f1f
<mask token>


class AnswersSerializer(serializers.ModelSerializer):
    id = serializers.IntegerField(required=False)


    class Meta:
        model = Answer
        fields = ['id', 'answer', 'isRight']

<mask token>


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


    class Meta:
        model = Answer
        fields = ['id']


class AnswersSerializer(serializers.ModelSerializer):
    id = serializers.IntegerField(required=False)


    class Meta:
        model = Answer
        fields = ['id', 'answer', 'isRight']

<mask token>


class AnswerSerializer(serializers.ModelSerializer):
    id = serializers.IntegerField(required=False)


    class Meta:
        model = Answer
        fields = ['id']


class AnswersSerializer(serializers.ModelSerializer):
    id = serializers.IntegerField(required=False)


    class Meta:
        model = Answer
        fields = ['id', 'answer', 'isRight']

from .models import Answer
from rest_framework import serializers


class AnswerSerializer(serializers.ModelSerializer):
    id = serializers.IntegerField(required=False)


    class Meta:
        model = Answer
        fields = ['id']


class AnswersSerializer(serializers.ModelSerializer):
    id = serializers.IntegerField(required=False)


    class Meta:
        model = Answer
        fields = ['id', 'answer', 'isRight']
