from rest_framework import serializers
from rest_framework.validators import UniqueValidator
from .models import *


class EmailSerializer(serializers.Serializer):
    """serializersa name field for testing our EmailAPI"""
    name = serializers.CharField(validators=[UniqueValidator(queryset=
        EmailValidation.objects.all())])

7b5b76999045d33be5d58155c9b0fd49263bb04b
<mask token>


class EmailSerializer(serializers.Serializer):
    <mask token>
    <mask token>

<mask token>


class EmailSerializer(serializers.Serializer):
    <mask token>
    name = serializers.CharField(validators=[UniqueValidator(queryset=
        EmailValidation.objects.all())])

<mask token>


class EmailSerializer(serializers.Serializer):
    """serializersa name field for testing our EmailAPI"""
    name = serializers.CharField(validators=[UniqueValidator(queryset=
        EmailValidation.objects.all())])

from rest_framework import serializers
from rest_framework.validators import UniqueValidator
from .models import *


class EmailSerializer(serializers.Serializer):
    """serializersa name field for testing our EmailAPI"""
    name = serializers.CharField(validators=[UniqueValidator(queryset=
        EmailValidation.objects.all())])
