from rest_framework import serializers
from .models import Student


class StudentSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model=Student
        fields=('roll_no', 'name', 'department', 'stud_class')

e618e1568d110564a156271d7aca189015a33e8a
<mask token>

<mask token>


class StudentSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Student
        fields = 'roll_no', 'name', 'department', 'stud_class'

from rest_framework import serializers
from .models import Student


class StudentSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Student
        fields = 'roll_no', 'name', 'department', 'stud_class'

from rest_framework import serializers
from .models import Student


class StudentSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model=Student
        fields=('roll_no', 'name', 'department', 'stud_class')
