From a1e31bcc178bfe3b03057b523d6093fd189ac3f3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Herv=C3=A9=20=20MENAGER?= <herve.menager@pasteur.fr>
Date: Mon, 16 Oct 2017 18:04:14 +0200
Subject: [PATCH] import various data flags for in bibliography table

Former-commit-id: ee966162bde5f66397539c18313e773f3bff2185
---
 ippisite/ippidb/management/commands/import_v1_data.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/ippisite/ippidb/management/commands/import_v1_data.py b/ippisite/ippidb/management/commands/import_v1_data.py
index 108c344d..259d1756 100644
--- a/ippisite/ippidb/management/commands/import_v1_data.py
+++ b/ippisite/ippidb/management/commands/import_v1_data.py
@@ -116,6 +116,13 @@ class Command(BaseCommand):
                     else:
                         b.source = 'PT'
                     b.id_source = row[2]
+                    b.cytotox = row[6]=='Y'
+                    b.in_silico = row[7]=='Y'
+                    b.in_vitro = row[8]=='Y'
+                    b.in_vivo = row[9]=='Y'
+                    b.in_cellulo = row[10]=='Y'
+                    b.pharmacokinetic = row[11]=='Y'
+                    b.xray = row[12]=='Y'
                     b.save(autofill=True)
                 except Exception as e:
                     if options['stoponfail']:
-- 
GitLab