diff --git a/program/migrations/0073_alter_note_tags.py b/program/migrations/0073_alter_note_tags.py index f8c8102dbbeedfdd3604ee394c61deeb7764db70..698b0ef307f5d78a039eb428ca667026d744f5bd 100644 --- a/program/migrations/0073_alter_note_tags.py +++ b/program/migrations/0073_alter_note_tags.py @@ -12,6 +12,11 @@ def split_old_tags(apps, _): note.save() + for note in Note.objects.filter(old_tags=""): + note.tags = json.dumps([]) + + note.save() + class Migration(migrations.Migration): dependencies = [