from rest_framework import serializers
from basic_rest_app.models import Student
class StudentSerializer(serializers.ModelSerializer):
    class Meta:
        model = Student
        fields = ('firstname', 'lastname', 'dept', 'gender', 'language')

bd01143f8948e7b2ade8290eb87dd86028731e33
<mask token>

<mask token>


class StudentSerializer(serializers.ModelSerializer):


    class Meta:
        model = Student
        fields = 'firstname', 'lastname', 'dept', 'gender', 'language'

from rest_framework import serializers
from basic_rest_app.models import Student


class StudentSerializer(serializers.ModelSerializer):


    class Meta:
        model = Student
        fields = 'firstname', 'lastname', 'dept', 'gender', 'language'

from rest_framework import serializers
from basic_rest_app.models import Student
class StudentSerializer(serializers.ModelSerializer):
    class Meta:
        model = Student
        fields = ('firstname', 'lastname', 'dept', 'gender', 'language')
