from rest_framework import serializers

from ..models import StudyMode


class StudyModeListSerializer(serializers.ModelSerializer):
    class Meta:
        model = StudyMode
        fields = (
            'id', 'slug', 'name',
        )
        read_only_fields = fields
