(self, request=None, **kwargs)
return self.create_response(request, to_be_serialized, response_class=status)
Exactly copied from https://github.com/toastdriven/django-tastypie/blob/v0.9.14/tastypie/resources.py#L1466
        (BSD licensed) and modified to pass the kwargs to `obj_create` and support only create method
Exactly copied from https://github.com/toastdriven/django-tastypie/blob/v0.9.14/tastypie/resources.py#L1466
        (BSD licensed) and modified to pass the kwargs to `obj_create` and support only create method
Exactly copied from https : // github . com / toastdriven / django - tastypie / blob / v0 . 9 . 14 / tastypie / resources . py#L1466 ( BSD licensed ) and modified to pass the kwargs to obj_create and support only create method
def patch_list(self, request=None, **kwargs):
        """
        Exactly copied from https://github.com/toastdriven/django-tastypie/blob/v0.9.14/tastypie/resources.py#L1466
        (BSD licensed) and modified to pass the kwargs to `obj_create` and support only create method
        """
        request = convert_post_to_patch(request)
        deserialized = self.deserialize(request, request.body, format=request.META.get('CONTENT_TYPE', 'application/json'))

        collection_name = self._meta.collection_name
        if collection_name not in deserialized:
            raise BadRequest("Invalid data sent: missing '%s'" % collection_name)

        if len(deserialized[collection_name]) and 'put' not in self._meta.detail_allowed_methods:
            raise ImmediateHttpResponse(response=http.HttpMethodNotAllowed())

        bundles_seen = []
        status = http.HttpAccepted
        for data in deserialized[collection_name]:

            data = self.alter_deserialized_detail_data(request, data)
            bundle = self.build_bundle(data=dict_strip_unicode_keys(data), request=request)
            try:

                self.obj_create(bundle=bundle, **self.remove_api_resource_names(kwargs))
            except AssertionError as e:
                status = http.HttpBadRequest
                bundle.data['_id'] = str(e)
            bundles_seen.append(bundle)

        to_be_serialized = [bundle.data['_id'] for bundle in bundles_seen]
        return self.create_response(request, to_be_serialized, response_class=status)
def patch_list ( self , request = None , * * kwargs ) : request = convert_post_to_patch ( request ) deserialized = self . deserialize ( request , request . body , format = request . META . get ( 'CONTENT_TYPE' , 'application/json' ) ) collection_name = self . _meta . collection_name if collection_name not in deserialized : raise BadRequest ( "Invalid data sent: missing '%s'" % collection_name ) if len ( deserialized [ collection_name ] ) and 'put' not in self . _meta . detail_allowed_methods : raise ImmediateHttpResponse ( response = http . HttpMethodNotAllowed ( ) ) bundles_seen = [ ] status = http . HttpAccepted for data in deserialized [ collection_name ] : data = self . alter_deserialized_detail_data ( request , data ) bundle = self . build_bundle ( data = dict_strip_unicode_keys ( data ) , request = request ) try : self . obj_create ( bundle = bundle , * * self . remove_api_resource_names ( kwargs ) ) except AssertionError as e : status = http . HttpBadRequest bundle . data [ '_id' ] = str ( e ) bundles_seen . append ( bundle ) to_be_serialized = [ bundle . data [ '_id' ] for bundle in bundles_seen ] return self . create_response ( request , to_be_serialized , response_class = status )