<reponame>jieyuan-bi/finduofagroup<filename>findclassmate/courses/serializers.py
from rest_framework import serializers

from .models import *

class ClassSerializer(serializers.ModelSerializer):
    class Meta:
        model = ClassModel
        fields = (
            "name",
            "title",
            "description",
            "active",
        )
from rest_framework import serializers

from .models import *

class ClassSerializer(serializers.ModelSerializer):
    class Meta:
        model = ClassModel
        fields = (
            "name",
            "title",
            "description",
            "active",
        )