Not really easy because, as I say in my comment, piston uses queryset.iterator() internally when serializing the objects and this forbids the usage of prefetch_related().
Maybe there is a way to trick piston into not using iterator()… but it's really not obvious how.
> Raphaël, Ok, let's get that fix in!
Not really easy because, as I say in my comment, piston uses queryset.iterator() internally when serializing the objects and this forbids the usage of prefetch_related().
Maybe there is a way to trick piston into not using iterator()… but it's really not obvious how.