Commit d81fa378 authored by Aymeric Barantal's avatar Aymeric Barantal
Browse files

output contact_id on /contacts API

parent 2444d374
......@@ -23,7 +23,9 @@ class CampaignContactSerializer(serializers.HyperlinkedModelSerializer):
last_name = serializers.Field(source='contact.last_name')
phone = serializers.Field(source='')
groups = serializers.Field(source='all_groups')
contact_id = serializers.Field(source='')
class Meta:
model = CampaignContact
fields = ('id', 'weight', 'first_name', 'last_name', 'phone', 'groups')
fields = ('id', 'weight', 'contact_id',
'first_name', 'last_name', 'phone', 'groups')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment