#NEWLINE# def select_for_update( self , **kwargs ) : #NEWLINE# #INDENT# '\n        Returns a new QuerySet instance that will select objects with a\n        FOR UPDATE lock.\n        ' #NEWLINE# nowait = kwargs . pop ( 'nowait' , False ) #NEWLINE# obj = self . _clone ( ) #NEWLINE# obj . query . select_for_update = True #NEWLINE# obj . query . select_for_update_nowait = nowait #NEWLINE# return kwargs