Re: Accessing other attributes from Foreign-key

2008-09-04 Thread Daniel Roseman
On Sep 4, 12:36 pm, [EMAIL PROTECTED] wrote: > Guys, > > I have the following model : > > from pypo.contracts.models import job_id > from pypo.suppliers.models import Company > > ##Create your models here > > class ponum(models.Model): >          contract = models.ForeignKey(job_id) >          sup

Accessing other attributes from Foreign-key

2008-09-04 Thread andylockran
Guys, I have the following model : from pypo.contracts.models import job_id from pypo.suppliers.models import Company ##Create your models here class ponum(models.Model): contract = models.ForeignKey(job_id) supplier = models.ForeignKey(Company) Description = models.