Re: More trouble with select_related()

2011-04-14 Thread Carsten Fuchs
Dear Martin, Am 14.04.2011 15:26, schrieb Martin J. Laubach: Sounds like a join with a table that doesn't have all the rows. Let me guess: the tables have been filled by some other program and you are just reading them from Django -- and you are missing a blank=True, null=True on a ForeignKey in

Aw: More trouble with select_related()

2011-04-14 Thread Martin J. Laubach
Sounds like a join with a table that doesn't have all the rows. Let me guess: the tables have been filled by some other program and you are just reading them from Django -- and you are missing a blank=True, null=True on a ForeignKey in your Django models somewhere. Cheers, mjl --

More trouble with select_related()

2011-04-14 Thread Carsten Fuchs
Hi all, using Django 1.3 with Python 2.6.5 on Ubuntu 10.04 and mod_wsgi, with Oracle database, in addition to http://code.djangoproject.com/ticket/15766, I seem to have come over another problem with select_related(): The same queryset produces different results (number of returned database