chore(api): use fully qualified model names
This commit is contained in:
parent
fc98b617cf
commit
4009e7eeb6
12 changed files with 29 additions and 23 deletions
|
@ -37,7 +37,7 @@ class Podcast(models.Model):
|
|||
|
||||
|
||||
class PodcastEpisode(models.Model):
|
||||
podcast = models.ForeignKey("Podcast", on_delete=models.DO_NOTHING)
|
||||
podcast = models.ForeignKey("podcasts.Podcast", on_delete=models.DO_NOTHING)
|
||||
|
||||
file = models.ForeignKey(
|
||||
"storage.File",
|
||||
|
@ -71,7 +71,7 @@ class PodcastEpisode(models.Model):
|
|||
|
||||
|
||||
class StationPodcast(models.Model):
|
||||
podcast = models.ForeignKey("Podcast", on_delete=models.DO_NOTHING)
|
||||
podcast = models.ForeignKey("podcasts.Podcast", on_delete=models.DO_NOTHING)
|
||||
|
||||
def get_owner(self):
|
||||
return self.podcast.owner
|
||||
|
@ -82,7 +82,7 @@ class StationPodcast(models.Model):
|
|||
|
||||
|
||||
class ImportedPodcast(models.Model):
|
||||
podcast = models.ForeignKey("Podcast", on_delete=models.DO_NOTHING)
|
||||
podcast = models.ForeignKey("podcasts.Podcast", on_delete=models.DO_NOTHING)
|
||||
override_album = models.BooleanField(db_column="album_override")
|
||||
|
||||
auto_ingest = models.BooleanField()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue