from rest_framework import serializers
from .models import *


class ContactSerializer(serializers.ModelSerializer):
    """
    Serializer for Contact Model
    """
    class Meta:
        model = Contact
        fields = ('id', 'name', 'surname', 'phone_num', 'pub_date',
            'description', 'is_active')
        extra_kwargs = {
            'name': {'required': False},
            'surname': {'required': False},
            'phone_num': {'required': False},
            'description': {'required': False},
        }
c4a7ad6ac994d4ae2942e48fa87341fb07f4300f
<mask token>

<mask token>


class ContactSerializer(serializers.ModelSerializer):
    <mask token>


    class Meta:
        model = Contact
        fields = ('id', 'name', 'surname', 'phone_num', 'pub_date',
            'description', 'is_active')
        extra_kwargs = {'name': {'required': False}, 'surname': {'required':
            False}, 'phone_num': {'required': False}, 'description': {
            'required': False}}

<mask token>


class ContactSerializer(serializers.ModelSerializer):
    """
    Serializer for Contact Model
    """


    class Meta:
        model = Contact
        fields = ('id', 'name', 'surname', 'phone_num', 'pub_date',
            'description', 'is_active')
        extra_kwargs = {'name': {'required': False}, 'surname': {'required':
            False}, 'phone_num': {'required': False}, 'description': {
            'required': False}}

from rest_framework import serializers
from .models import *


class ContactSerializer(serializers.ModelSerializer):
    """
    Serializer for Contact Model
    """


    class Meta:
        model = Contact
        fields = ('id', 'name', 'surname', 'phone_num', 'pub_date',
            'description', 'is_active')
        extra_kwargs = {'name': {'required': False}, 'surname': {'required':
            False}, 'phone_num': {'required': False}, 'description': {
            'required': False}}

from rest_framework import serializers
from .models import *


class ContactSerializer(serializers.ModelSerializer):
    """
    Serializer for Contact Model
    """
    class Meta:
        model = Contact
        fields = ('id', 'name', 'surname', 'phone_num', 'pub_date',
            'description', 'is_active')
        extra_kwargs = {
            'name': {'required': False},
            'surname': {'required': False},
            'phone_num': {'required': False},
            'description': {'required': False},
        }