chore(api): use fully qualified model names

This commit is contained in:
jo 2022-06-27 17:25:59 +02:00 committed by Kyle Robbertze
parent fc98b617cf
commit 4009e7eeb6
12 changed files with 29 additions and 23 deletions

View file

@ -11,7 +11,7 @@ class Schedule(models.Model):
null=True,
)
stream = models.ForeignKey(
"Webstream",
"schedule.Webstream",
on_delete=models.DO_NOTHING,
blank=True,
null=True,
@ -22,7 +22,7 @@ class Schedule(models.Model):
cue_in = models.DurationField()
cue_out = models.DurationField()
media_item_played = models.BooleanField(blank=True, null=True)
instance = models.ForeignKey("ShowInstance", on_delete=models.DO_NOTHING)
instance = models.ForeignKey("schedule.ShowInstance", on_delete=models.DO_NOTHING)
playout_status = models.SmallIntegerField()
broadcasted = models.SmallIntegerField()
position = models.IntegerField()