The emitter should support chained querysets
The fix is pretty simple assuming that the user chained a queryset:
in piston/emitters.py instead of:
if isinstance(thing, QuerySet):
import itertools if isinstance(thing, (QuerySet, itertools.chain)):
Chained QuerySets are useful when you need to join two or more QS and you don't have to use UNION in raw SQL.