send contact_mode id as str instead of int (#10262)

This commit is contained in:
Josue Kouka 2016-03-10 14:10:57 +01:00
parent eb8ce08780
commit 3ec2f1e4ae
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ class EndpointView(View, SingleObjectMixin):
formdata['%s_raw' % k] = titles[user.get(f)]
elif f == 'contact_mode':
d = contact_mode[data.get(f)]
formdata['%s_raw' % k] = data.get(f)
formdata['%s_raw' % k] = str(data.get(f))
elif f == 'IncomeRevenue-Year-2' and data.get(f):
metadata = dict([(item['name'], item['value']) for item in data.get(f, {}).get('metadata', [])])
if metadata: