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
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
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
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
4 matches
Mail list logo