from ces_fall_rest_api.models.student import Student
from ces_fall_rest_api.models.student_in_section import StudentInSection
from drf_writable_nested.serializers import WritableNestedModelSerializer
from .student_serializer import StudentSerializer


class StudentInSectionSerializer(WritableNestedModelSerializer):
    """This class allow StudnetInSection model to convert to Python datatype 
    that can be rendered into JSON, XML, or other content types. 

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