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 03/22/2013
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 = models.CharField(max_length
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', through='Thro
3 matches
Mail list logo