From 3989284f75c42954d36b70675644d6c8253dbb17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 5 Dec 2011 17:48:46 +0100 Subject: [PATCH] add sync of suite number --- themis/importexport/sync.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/themis/importexport/sync.py b/themis/importexport/sync.py index 9648270..a674e30 100644 --- a/themis/importexport/sync.py +++ b/themis/importexport/sync.py @@ -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',