#NEWLINE# def delete( self , user = None ) : #NEWLINE# #INDENT# '\n        Soft-delete all collected instances.\n\n        ' #NEWLINE# now = utcnow ( ) #NEWLINE# for ( model , instances ) in self . data . iteritems ( ) : #NEWLINE# #INDENT# pk_list = [ obj . pk for obj in obj ] #NEWLINE# model . _base_manager . filter ( pk__in = pk_list , deleted_on__isnull = True ) . update ( deleted_by = user , deleted_on = now )