Skip to content
Snippets Groups Projects
Commit 76bc7f4c authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Remove is_repetition field, add repetition_of fiel to TimeSlot.

parent 448e1100
No related branches found
No related tags found
No related merge requests found
......@@ -1092,7 +1092,13 @@ class TimeSlot(models.Model):
start = models.DateTimeField()
end = models.DateTimeField()
memo = models.TextField(blank=True)
is_repetition = models.BooleanField(default=False)
repetition_of = models.ForeignKey(
"self",
blank=True,
null=True,
on_delete=models.CASCADE,
related_name="repetitions",
)
playlist_id = models.IntegerField(null=True)
note_id = models.IntegerField(null=True, editable=False)
......
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