"""This module holds the serializers for the ``api`` test app"""

from rest_framework import serializers

from .models import NonSyncableModel, SyncableModel


class SyncableModelSerializer(serializers.ModelSerializer):
    """Serializer for the ``SyncableModel`` model."""

    class Meta:
        model = SyncableModel
        fields = (
            'id',
            'text',
        )


class NonSyncableModelSerializer(serializers.ModelSerializer):
    """Serializer for the ``NonSyncableModel`` model."""

    class Meta:
        model = NonSyncableModel
        fields = (
            'id',
            'text',
        )
