Re: field lookups problem

2013-03-22 Thread Roberto López López
Hi Anssi, thanks for your answer. I already thought about that, but checking the code from django.db.models.base.Model#__eq__() is not telling me the same: def __eq__(self, other): return isinstance(other, self.__class__) and self._get_pk_val() == other._get_pk_val() On

Re: field lookups problem

2013-03-22 Thread akaariai
On 22 maalis, 15:44, Roberto López López wrote: > Hi, > > I have a problem with my data model while doing field lookups. This is > my models.py: > > from django.db import models, IntegrityError > > # Create your models here. > > class Model1(models.Model): >     title =

field lookups problem

2013-03-22 Thread Roberto López López
Hi, I have a problem with my data model while doing field lookups. This is my models.py: from django.db import models, IntegrityError # Create your models here. class Model1(models.Model): title = models.CharField(max_length=15) models2 = models.ManyToManyField('Model2',