from rest_framework import serializers
from contact_agent.models.contact_agent import AgentContactInformation
# from api.property_api.contact_information.models.contact_information import ContactInformation


class AgentContactInformationSerializer(serializers.ModelSerializer):

    id = serializers.ReadOnlyField()

    class Meta:
        model = AgentContactInformation
        fields = [
            'id', 'first_name', 'last_name',
            'contact', 'email', 'district','created_by', 'message', 'agent_info',
        ]
        
        read_only_fields = ['id', 'created_at', 'updated_at','created_by','updated_by']