diff --git a/themis/libellioimport/migration.py b/themis/libellioimport/migration.py index 8f89813..55285f1 100644 --- a/themis/libellioimport/migration.py +++ b/themis/libellioimport/migration.py @@ -157,6 +157,10 @@ class Migrate(BrowserView): # this document was not completed, do not create a secondary object second_object_typename = None + if not ob.mailnumber: + # if there's no mailnumber, do not create a secondary object + second_object_typename = None + if second_object_typename: # XXX: this is a temporary location, no decision has been taken yet # on the location of those documents