Accessing Django OneToOneField in templates?

Viewed 6146

I have the following scenario.

class A(models.Model):
    a = models.IntegerField()

class B(models.Model):
    c = models.OneToOneField(A)
    d = models.DecimalField()

In my templates, I have a list of objects A. In my template how do I access the attribute "d" from my template?

Thanks.

1 Answers
Related