from quiz.models import Quiz
from rest_framework import serializers

from .create_quiz import QuestionSerializer


class QuizRetrieveSerializer(serializers.ModelSerializer):
    questions = QuestionSerializer(many=True, source='question_set')

    class Meta:
        model = Quiz
        fields = ('id', 'questions')

82b78b238c59e785018d03db5b02ee511c4b9e40
<mask token>

<mask token>


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


    class Meta:
        model = Quiz
        fields = 'id', 'questions'

<mask token>


class QuizRetrieveSerializer(serializers.ModelSerializer):
    questions = QuestionSerializer(many=True, source='question_set')


    class Meta:
        model = Quiz
        fields = 'id', 'questions'

from quiz.models import Quiz
from rest_framework import serializers
from .create_quiz import QuestionSerializer


class QuizRetrieveSerializer(serializers.ModelSerializer):
    questions = QuestionSerializer(many=True, source='question_set')


    class Meta:
        model = Quiz
        fields = 'id', 'questions'

from quiz.models import Quiz
from rest_framework import serializers

from .create_quiz import QuestionSerializer


class QuizRetrieveSerializer(serializers.ModelSerializer):
    questions = QuestionSerializer(many=True, source='question_set')

    class Meta:
        model = Quiz
        fields = ('id', 'questions')
