Re: Q behavior with filter() and exclude()

2006-05-26 Thread Luke Plant
On Friday 26 May 2006 18:57, Doug Van Horn wrote: > I posted this here to: > http://www.djangoproject.com/documentation/db_api/ > > It seems that when you pass a Q() object into .filter() or > .exclude(), you end up with the same results. That is, the context > of the method, filter or exclude,

Q behavior with filter() and exclude()

2006-05-26 Thread Doug Van Horn
I posted this here to: http://www.djangoproject.com/documentation/db_api/ It seems that when you pass a Q() object into .filter() or .exclude(), you end up with the same results. That is, the context of the method, filter or exclude, is ignored when it receives a Q object. For example: In [1]: