I have a tastypie resource for a model. I also have a view which comes up with a queryset which needs to be serialised and sent to client. I am looking for a way to let tast
This was bugging me too, but I think I found the answer after looking through tastypie's code on github.
This will make a bunch of bundles.
bundles = [Resource.build_bundle(obj=q, request=request) for q in Queryset]
This will perform the dehydration.
data = [Resource.full_dehydrate(bundle) for bundle in bundles]
This will perform the serialization.
Resource.serialize(None, data, 'application/json'),