Django serializer works really well when you need to serialize a QuerySet, but often times I need to serialize a JSON object with more than just a QuerySet.
This leads me to serialize the QuerySet, and then load it again to a python dict and then serialize it again. Like this:
peopleJSON = serializers.serialize("json", people_queryset)
people_dict = simplejson.loads(peopleJSON )
json = simplejson.dumps({'foo': foo, 'people':people_dict})
A better way would be:
data = {'foo':foo, 'people':people_queryset}
json = serializers.serialize("json", data)
Is there a reason not to allow this behavior? I can't think of one.