#12855: QuerySet.__or__ has bad behavior in the presence of extra ------------------------------------------+--------------------------------- Reporter: Alex | Owner: nobody Status: new | Milestone: 1.2 Component: Database layer (models, ORM) | Version: SVN Keywords: | Stage: Unreviewed Has_patch: 0 | ------------------------------------------+--------------------------------- If you do something like {{{ q = Model.objects.extra(where=["some stuff"]) | Model.objects.filter(c=d) }}}
In this csae the where clause of the 2nd queryset gets lost because of the way they are combined. This is a symptom of the fact that extra where stuff is basically tacked onto the end of a queryset after the fact. -- Ticket URL: <http://code.djangoproject.com/ticket/12855> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.