#NEWLINE# def add_immediate_loading( self , field_names ) : #NEWLINE# #INDENT# '\n        Add the given list of model field names to the set of fields to\n        retrieve when the SQL is executed ("immediate loading" fields). The\n        field names replace any existing immediate loading field names. If\n        there are field names already specified for deferred loading, those\n        names are removed from the new field_names before storing the new names\n        for immediate loading. (That is, immediate loading overrides any\n        existing immediate values, but respects existing deferrals.)\n        ' #NEWLINE# ( existing , defer ) = self . deferred_loading #NEWLINE# field_names = set ( field_names ) #NEWLINE# if ( 'pk' in field_names ) : #NEWLINE# #INDENT# field_names . remove ( 'pk' ) #NEWLINE# field_names . add ( self . get_meta ( ) . pk . name ) #NEWLINE# #UNINDENT# if defer : #NEWLINE# #INDENT# self . deferred_loading = ( field_names . difference ( existing ) , False ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . deferred_loading = ( defer , False )