#NEWLINE# def do_pending_lookups( sender , **kwargs ) : #NEWLINE# #INDENT# '\n    Handle any pending relations to the sending model. Sent from class_prepared.\n    ' #NEWLINE# key = ( sender . _meta . app_label , sender . __name__ ) #NEWLINE# for ( cls , field , operation ) in pending_lookups . pop ( key , [ ] ) : #NEWLINE# #INDENT# operation ( field , sender , cls )