Could you include the output to highlight the differences? Brian
On Wed, Apr 13, 2011 at 9:32 AM, Gianluca Sforna <gia...@gmail.com> wrote: > In writing a complex filter for an application, I've found a different > behavior between a filter like: > Model.objects.exclude(filter1, filter2) > > and one like: > Model.objects.exclude(Q(filter1), Q(filter2)) > > where filter1 and filter2 are both field lookups on related models; in > particular only the second syntax yields the desired result set. Are > the above forms supposed to produce comparable queryset? > > Thanks in advance > > G. > > > -- > Gianluca Sforna > > http://morefedora.blogspot.com > http://identi.ca/giallu - http://twitter.com/giallu > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Brian Bouterse ITng Services -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.