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

@ -24,7 +24,7 @@ class PlayoutHistory(models.Model):
class PlayoutHistoryMetadata(models.Model):
history = models.ForeignKey(
"PlayoutHistory",
"history.PlayoutHistory",
on_delete=models.DO_NOTHING,
)
key = models.CharField(max_length=128)
@ -45,7 +45,10 @@ class PlayoutHistoryTemplate(models.Model):
class PlayoutHistoryTemplateField(models.Model):
template = models.ForeignKey("PlayoutHistoryTemplate", on_delete=models.DO_NOTHING)
template = models.ForeignKey(
"history.PlayoutHistoryTemplate",
on_delete=models.DO_NOTHING,
)
name = models.CharField(max_length=128)
label = models.CharField(max_length=128)
type = models.CharField(max_length=128)