<reponame>roman-tiukh/Data_converter
from rest_framework import serializers
from business_register.models.pep_models import Pep


class BasePepSerializer(serializers.ModelSerializer):
    class Meta:
        fields = [
            'id', 'source_id', 'first_name', 'last_name', 'middle_name', 'fullname',
        ]


class PepUkrSerializer(BasePepSerializer):
    class Meta:
        model = Pep
        fields = BasePepSerializer.Meta.fields + [
            'sanctions',
        ]
