def patch_list(self, create_objects=[], delete_objects=[]):
        """
        Tastypie resources have a patch_list method that allows you to create
        and delete bulk collections of objects. This uses HTTP PATCH.

        :param create_objects: List of objects to create in dict form.
        :param delete_objects: List of objects to delete in dict form.

        """
        create_objects = [self.filter(o) for o in create_objects]
        delete_objects = [self.filter(o) for o in delete_objects]
        delete_collection_name = "deleted_%s" % self._meta.collection_name
        data = {
            self._meta.collection_name: create_objects,
            delete_collection_name: delete_objects,
        }
        return self.api.make_request('PATCH', self.path, data)
dataset/ETHPy150Open datafolklabs/drest/drest/resource.py/TastyPieResourceHandler.patch_list/original