diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-03-03 18:39:12 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-03-03 18:39:12 +0100 |
commit | 56b8c7a2705a0bf1434b5f917e3ba375646c6b35 (patch) | |
tree | 34cdac0680a3c6670e99e6c026f152f046bc507e /archaeological_operations/import_from_csv.py | |
parent | 20898182ec24b990b7311977b684512701a2b892 (diff) | |
download | Ishtar-56b8c7a2705a0bf1434b5f917e3ba375646c6b35.tar.bz2 Ishtar-56b8c7a2705a0bf1434b5f917e3ba375646c6b35.zip |
Operations import: improve operation type import
Diffstat (limited to 'archaeological_operations/import_from_csv.py')
-rw-r--r-- | archaeological_operations/import_from_csv.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/archaeological_operations/import_from_csv.py b/archaeological_operations/import_from_csv.py index b1f8989ce..96ffcf085 100644 --- a/archaeological_operations/import_from_csv.py +++ b/archaeological_operations/import_from_csv.py @@ -158,6 +158,8 @@ def parse_title(value): def parse_person(surname, name, old_ref, owner): values = {"surname":parse_title(surname), "name":parse_title(name)} + if not values['surname'] and not values['name']: + return q = Person.objects.filter(**values) if q.count(): return q.all()[0] |