-
-
Save rabmarjan/d9f43a5db7a5181a06ca5cb3d0ad1ca5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from contact.models import Contact | |
from rest_framework import serializers | |
class ContactSerializer(serializers.ModelSerializer): | |
"""Serializes an Address object""" | |
class Meta: | |
model = Contact | |
fields = ("contact_id", "first_name", "last_name", "middle_name", "email", "country", "phone", "address") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment