sync 'undefined' as None
This commit is contained in:
parent
6eb155ed48
commit
a3ebc46b90
|
@ -276,12 +276,12 @@ class SyncFromThemis(UtilityView):
|
|||
authors = [self.get_author_intid(x) for x in data.get('auteurs')]
|
||||
object.authors = [RelationValue(x) for x in authors if x]
|
||||
|
||||
if data.get('etat_en_commission'):
|
||||
if data.get('etat_en_commission') and data.get('etat_en_commission') != u'Indéterminé':
|
||||
object.commission_status = data.get('etat_en_commission')
|
||||
else:
|
||||
object.commission_status = None
|
||||
|
||||
if data.get('vote_seance'):
|
||||
if data.get('vote_seance') and data.get('vote_seance') != u'Indéterminé':
|
||||
object.seance_vote = data.get('vote_seance')
|
||||
else:
|
||||
object.seance_vote = None
|
||||
|
|
Reference in New Issue