diff --git a/training/management/commands/import_old_db.py b/training/management/commands/import_old_db.py index 66335925..8fab31c6 100644 --- a/training/management/commands/import_old_db.py +++ b/training/management/commands/import_old_db.py @@ -146,7 +146,7 @@ class Command(BaseCommand): supervisor=supervisor ) notes = child.find('{}_Notes'.format(depth)) - if notes: + if notes is not None: obj.notes = notes.text obj.save() if created: