<gh_stars>0
from rest_framework import serializers
from teachers.models import Teacher

class TeacherProfile(serializers.ModelSerializer):
    class Meta:
        model = Teacher
        fields = [
            'user',
            'class_type'
        ]

from rest_framework import serializers
from teachers.models import Teacher

class TeacherProfile(serializers.ModelSerializer):
    class Meta:
        model = Teacher
        fields = [
            'user',
            'class_type'
        ]