fix title field filling

This commit is contained in:
Serghei Mihai 2016-03-28 11:04:53 +02:00
parent 5b245c77b0
commit 6ab38cc7fc
1 changed files with 2 additions and 2 deletions

View File

@ -202,8 +202,8 @@ class EndpointView(View, SingleObjectMixin):
formdata = {}
for f, k in fields_mapping.iteritems():
if f == 'title':
d = titles[user.get(f)]
formdata['%s_raw' % k] = titles[user.get(f)]
d = user.get(f)
formdata['%s_raw' % k] = user.get(f)
elif f == 'contact_mode':
d = contact_mode[data.get(f)]
formdata['%s_raw' % k] = str(data.get(f))