Re: reverse relationships and their creation

2010-07-09 Thread Daniel Roseman
On Jul 9, 11:27 am, Alex wrote: > Hi Daniel, > > Models - > > class Reel(models.Model): >     st = models.DateTimeField(auto_now_add=True) >     et = models.DateTimeField(auto_now=True) >     othermodel= models.ForeignKey(Othermodel) > > class Othermodel(models.Model): >     name = models.CharFiel

Re: reverse relationships and their creation

2010-07-09 Thread Alex
Hi Daniel, Models - class Reel(models.Model): st = models.DateTimeField(auto_now_add=True) et = models.DateTimeField(auto_now=True) othermodel= models.ForeignKey(Othermodel) class Othermodel(models.Model): name = models.CharField(max_length=100, blank=False) Code - om = O

Re: reverse relationships and their creation

2010-07-09 Thread Daniel Roseman
On Jul 9, 10:59 am, Alex wrote: > Hi, > I am getting a 'QuerySet' object has no attribute 'reel_set' on a > reverse relationship query. > > I am pretty sure the models are correct which has made me look at what > else might be the problem. So far I have thought of: > > - no relationships instances

reverse relationships and their creation

2010-07-09 Thread Alex
Hi, I am getting a 'QuerySet' object has no attribute 'reel_set' on a reverse relationship query. I am pretty sure the models are correct which has made me look at what else might be the problem. So far I have thought of: - no relationships instances have been created between the two models so ef