Re: QuerySet generating wrong SQL

2007-01-29 Thread Don Arbow
On Jan 29, 2007, at 4:22 AM, innervision wrote: > > How can I tell the queryset to use an OR operator between the 'where' > clause and the conditions set-up in the Q object? http://www.djangoproject.com/documentation/models/or_lookups/ Don --~--~-~--~~~---~--~~

QuerySet generating wrong SQL

2007-01-29 Thread innervision
I'm having a problem when I try to create a queryset with a call to filter() and extra(). No matter what operator I use when generating the expression I end up with an SQL query that ANDs the filter() and extra() parameters, rather than ORing them. Example: <<< code >>> class ProjectManager(m