image.save(stream, format='jpeg')
uploaded_file = SimpleUploadedFile('file.jpg', stream.getvalue(),
    content_type='image/jpg')
payload = {'title': 'Test collection', 'collection_items': [{'image': uf}]}
A Test to Support Both JSON and File Multipart Uploads in DRF