diff --git a/program/models.py b/program/models.py index 1130aa51197131b6adf0134b7b05dfce776fcb94..ba2b09ecae686970b9b872ba33090cf1b2454294 100644 --- a/program/models.py +++ b/program/models.py @@ -1139,6 +1139,9 @@ class TimeSlot(models.Model): class Note(models.Model): timeslot = models.OneToOneField(TimeSlot, on_delete=models.CASCADE, unique=True) contributors = models.ManyToManyField(Host, related_name="contributions") + owner = models.ForeignKey( + User, editable=False, on_delete=models.CASCADE, related_name="notes", default=1 + ) title = models.CharField(max_length=128) slug = models.SlugField(max_length=32, unique=True) summary = models.TextField(blank=True) @@ -1155,9 +1158,6 @@ class Note(models.Model): ppoi_field="ppoi", ) cba_id = models.IntegerField(blank=True, null=True) - user = models.ForeignKey( - User, editable=False, on_delete=models.CASCADE, related_name="users", default=1 - ) tags = models.TextField(blank=True, null=True) class Meta: