Pass Q objects properly in custom filter method.