class Business(models.Model): caption = models.CharField(max_length=32) code = models.CharField(max_length=32, null=True) # fk = models.ForeignKey(to='Foo', on_delete=models.CASCADE) class Host(models.Model): nid = models.AutoField(primary_key=True)…