Skip to content
Snippets Groups Projects
Verified Commit 3c611393 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

fix: migrate empty tags as []

parent ed04841e
No related branches found
No related tags found
No related merge requests found
Pipeline #6631 passed
......@@ -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 = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment