﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
7312	QuerySet.complex_filter() chokes on custom Q objects (with add_to_query() method)	Johannes Dollinger	nobody	"To reproduce, try:
{{{
#!python
class DoNothingQ:
    def add_to_query(self, query, aliases):
        pass

MyModel.objects.complex_filter(DoNothingQ())
}}}

A side effect: My patch prevents builtin Q objects from being wrapped in another Q object when passed to complex_filter(). I'm not sure that's ok.


The cause ist the same as in http://groups.google.com/group/django-users/msg/3e6d910eacb8b542.
"	Uncategorized	closed	Database layer (models, ORM)	dev	Normal	fixed	qsrf-cleanup		Unreviewed	1	0	0	0	0	0
