update title raw value

This commit is contained in:
Serghei Mihai 2016-03-04 11:09:51 +01:00
parent ac76ff79c4
commit eb8ce08780
1 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ class EndpointView(View, SingleObjectMixin):
'email': data['email'],
'username': uid,
'uuid': uid,
'title': data['title'],
'title': titles.get(data['title']),
'phone': data.get('fixed_phone_number'),
'mobile': data.get('mobile_phone_number')
}
@ -202,7 +202,7 @@ class EndpointView(View, SingleObjectMixin):
for f, k in fields_mapping.iteritems():
if f == 'title':
d = titles[user.get(f)]
formdata['%s_raw' % k] = user.get(f)
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)