payload = {'title': 'Test collection', 'collection_items': [{'image': uf}]}
self.api_factory.credentials(Authorization='Bearer ' + self.token)
A Test to Support Both JSON and File Multipart Uploads in DRF