"""This module contains the test serializers of the ``broker_models_hooks`` app"""

from rest_framework import serializers

from .models import ModelWithBrokerHook, ModelWithBrokerHookM2MRelatedMixin


class ModelWithBrokerHookSerializer(serializers.ModelSerializer):
    """Serializer for the ``ModelWithBrokerHook`` model."""

    class Meta:
        model = ModelWithBrokerHook


class ModelWithBrokerHookM2MRelatedMixinSerializer(serializers.ModelSerializer):
    """Serializer for the ``ModelWithBrokerHookM2MRelatedMixin`` model."""

    class Meta:
        model = ModelWithBrokerHookM2MRelatedMixin
