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

@ -35,7 +35,7 @@ class SmartBlock(models.Model):
class SmartBlockContent(models.Model):
block = models.ForeignKey(
"SmartBlock",
"schedule.SmartBlock",
on_delete=models.DO_NOTHING,
blank=True,
null=True,
@ -78,7 +78,7 @@ class SmartBlockCriteria(models.Model):
value = models.CharField(max_length=512)
extra = models.CharField(max_length=512, blank=True, null=True)
criteriagroup = models.IntegerField(blank=True, null=True)
block = models.ForeignKey("SmartBlock", on_delete=models.DO_NOTHING)
block = models.ForeignKey("schedule.SmartBlock", on_delete=models.DO_NOTHING)
def get_owner(self):
return self.block.get_owner()