On ma, 2010-02-15 at 18:22 -0800, ydjango wrote: > I have two query sets with two different where clause on same table > and same columns. Is it possible to have their union. > > I tried qryset = qryset1 + qryset2 - It gave me - "+ unsupported > argument"
One possible way: queryset = yourmodel.object.filter(Q(queryset1_args) | Q(queryset2_args)) -- Dennis K. The universe tends towards maximum irony. Don't push it. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.