Re: exclude() method bug

2008-12-04 Thread Malcolm Tredinnick
On Thu, 2008-12-04 at 04:58 -0800, Karantir wrote: > Hi, > > I've just found strange django behaviour and want to understand is it > a bug or an inconvenient feature. I have two models -- Place and Item > bound through the intermediate table ItemPlace (that stores additional > field --

Re: exclude() method bug

2008-12-04 Thread maeck
If quantity is an integer field, should you not use the exclude as: Place.objects.exclude(itemplace__quantity = 0) If this is not it, please show us the models. Maeck On Dec 4, 4:58 am, Karantir <[EMAIL PROTECTED]> wrote: > Hi, > > I've just found strange django behaviour and want to

exclude() method bug

2008-12-04 Thread Karantir
Hi, I've just found strange django behaviour and want to understand is it a bug or an inconvenient feature. I have two models -- Place and Item bound through the intermediate table ItemPlace (that stores additional field -- quantity). Physically it describes some quantity of items lying on the