diff --git a/ippisite/ippidb/management/commands/import_v1_data.py b/ippisite/ippidb/management/commands/import_v1_data.py index f6b60f8e6008d4b686bb28c54c3841cea9a6b4f2..c49cf75e5a455aac7105bef7eaa7d1a7999ab06f 100644 --- a/ippisite/ippidb/management/commands/import_v1_data.py +++ b/ippisite/ippidb/management/commands/import_v1_data.py @@ -15,7 +15,10 @@ class Command(BaseCommand): for row in rows: try: b = Bibliography() - b.source = 'PM' + if row[1]=='article': + b.source = 'PM' + else: + b.source = 'PT' b.id_source = row[2] b.save() except Exception as e: