'Return the fully serialized queryset (or None if the output stream is
not seekable).'

def getvalue(self):

    if callable(getattr(self.stream, 'getvalue', None)):
        return self.stream.getvalue()
