From 19e6585e26b3ec8378386225c8b79a749116a6c8 Mon Sep 17 00:00:00 2001 From: FreneticScribbler Date: Sun, 2 Jan 2022 15:03:11 +0000 Subject: [PATCH] Fix importer not working for notes --- training/management/commands/import_old_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: