from rest_framework import serializers
from ces_fall_rest_api.serializers.major_serializer import MajorSerializer

from ces_fall_rest_api.models.student import Student
from ces_fall_rest_api.models.major import Major
from .user_serializer import UserSerializer
from ces_fall_rest_api.models.user import User
from drf_writable_nested.serializers import WritableNestedModelSerializer


class StudentSerializer(serializers.ModelSerializer):
    """This class allow Student 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 = Student
        fields = '__all__'
