add sync of deputy biography field

This commit is contained in:
Frédéric Péters 2012-04-12 12:41:33 +02:00
parent e5f8bbdcd6
commit 6de3a26357
1 changed files with 7 additions and 0 deletions

View File

@ -100,6 +100,13 @@ class SyncFromThemis(UtilityView):
outputMimeType='text/x-html-safe')
else:
object.current_functions = None
if data.get('biography'):
object.biography = RichTextValue(
raw=data.get('biography'),
mimeType='text/html',
outputMimeType='text/x-html-safe')
else:
object.biography = None
for address in ('private_address', 'work_address', 'work_address_2'):
if not data.get(address):
continue