Skip to content

Instantly share code, notes, and snippets.

@raiderrobert
Created April 14, 2017 00:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raiderrobert/e0246532855ec281ba4e9d1482e57884 to your computer and use it in GitHub Desktop.
Save raiderrobert/e0246532855ec281ba4e9d1482e57884 to your computer and use it in GitHub Desktop.
class OrganizationSerializer(CreatedWithEpochSerializer):
id = serializers.CharField(source='client_generated_id')
address = UsAddressSerializer(required=False)
role = serializers.CharField(read_only=True, source='Membership__role')
class Meta:
model = Organization
fields = ('id', 'role', 'name', 'url', 'archived', 'created', 'address')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment