Say I have the following models:
class Baz(models.Model):
winning = models.CharField(max_length=100)
class Bar(models.Model):
baz = models.ForeignKey(Baz)
class Foo(models.Model):
bar = models.ForeignKey(Bar)
现在我有<代码>Foo,foo
。 下面几行的问话有多少?
winning = foo.bar.baz.winning
是否每个外国钥匙<代码>?? 或者Django的智能是否足够了在这里仅作一问?