add sync of suite number

This commit is contained in:
Frédéric Péters 2011-12-05 17:48:46 +01:00
parent 5a4eeab13d
commit 3989284f75
1 changed files with 4 additions and 1 deletions

View File

@ -175,10 +175,13 @@ class SyncFromThemis(UtilityView):
datetime.datetime.strptime(
data.get(attr), '%Y-%m-%d').toordinal())
for attr in ('numero_biq', 'numero_document'):
for attr in ('numero_biq', 'numero_document', 'numero_bqr'):
if data.get(attr):
object.no = data.get(attr)
if data.get('numero_suite'):
object.nodoc = data.get('numero_suite')
related_doc_ids = []
for attr in ('cr_seance', 'documents_lies', 'bulletin_des_travaux',
'bulletin_questions_ecrites',