Fixed #7312 -- Fixed handling of custom Q-like objects in QuerySet.custom_filter().
Fixed #7312 -- Fixed handling of custom Q-like objects in QuerySet.custom_filter().

This is pretty much internal-use-only code, so doesn't affect public API at
all, but it's nice to be able to handle things properly in any case. Patch from
emulbreh.

--HG--
extra : convert_revision : svn%3Abcc190cf-cafb-0310-a4f2-bffc1f526a37/django/trunk%407766

Belgabor/django,Belgabor/django,Belgabor/django