我有三個型號: class Variety(models.Model)
name = models.CharField(max_length=24)
class Item(models.Model)
name = models.CharField(max_length=24)
in_stock = models.IntegerField()
class Ite
我有這些模型: class Agency(models.Model):
pass
class User(models.Model):
agency = models.ForeignKey(Agency)
class Feedback(models.Model):
rating = models.DecimalField()
user = mode
在我的項目中,我有一個名爲Organization的模型,它可以有多個Campaign's。每個活動可以有多個donor's。希望在這裏澄清什麼是我的模型是這樣的: class Campaign(models.Model):
name = models.CharField()
organization = models.ForeignKey('org.Organization'