'Init this serializer given a stream or a string'

def __init__(self, stream_or_string, **options):

    self.options = options
    if isinstance(stream_or_string, basestring):
        self.stream = StringIO(stream_or_string)
    else:
        self.stream = stream_or_string
    models.get_apps()
