from rest_framework import serializers
from ces_fall_rest_api.models.major_question import MajorQuestion


class MajorQuestionSerializer(serializers.ModelSerializer):
    """This class allow MajorQuestion model to convert to Python datatype 
    that can be rendered into JSON, XML, or other content types. 

    Args:
        serializers (_type_): serializers class
    """
    class Meta:
        model = MajorQuestion
        fields = '__all__'
