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

fix: add default value to Note.tags

parent 273bff97
No related branches found
No related tags found
No related merge requests found
Pipeline #6633 passed
...@@ -25,7 +25,7 @@ class Migration(migrations.Migration): ...@@ -25,7 +25,7 @@ class Migration(migrations.Migration):
old_name="tags", old_name="tags",
), ),
migrations.AddField( migrations.AddField(
field=models.JSONField(blank=True), field=models.JSONField(blank=True, default=list),
model_name="note", model_name="note",
name="tags", name="tags",
), ),
......
...@@ -447,7 +447,7 @@ class Note(models.Model): ...@@ -447,7 +447,7 @@ class Note(models.Model):
# TODO: this requires show in the model and an unique_together constraint. Do we need this? # TODO: this requires show in the model and an unique_together constraint. Do we need this?
slug = models.SlugField(blank=True, max_length=32) slug = models.SlugField(blank=True, max_length=32)
summary = models.TextField(blank=True) summary = models.TextField(blank=True)
tags = models.JSONField(blank=True) tags = models.JSONField(blank=True, default=list)
timeslot = models.OneToOneField(TimeSlot, null=True, on_delete=models.SET_NULL, unique=True) timeslot = models.OneToOneField(TimeSlot, null=True, on_delete=models.SET_NULL, unique=True)
title = models.CharField(max_length=128) title = models.CharField(max_length=128)
updated_at = models.DateTimeField(auto_now=True, blank=True, null=True) updated_at = models.DateTimeField(auto_now=True, blank=True, null=True)
......
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