Created
June 2, 2014 13:32
-
-
Save ddemid/c8b3703a67d1f902f28b 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
class OrganizationContactSerializer(ContactSerializer): | |
organization = serializers.PrimaryKeyRelatedField(queryset=Organization.objects.all(), source='content_object') | |
class Meta: | |
model = Contact | |
fields = 'id', 'organization', 'relation', 'type', 'email', 'first_name', 'last_name', 'legal_entity_name', \ | |
'postal_code', 'region', 'country', 'role', 'to_user' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment