#NEWLINE# def handle_foreign_key( self , model , field , **kwargs ) : #NEWLINE# #INDENT# loader = getattr ( self . view , '_form_ajax_refs' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) . get ( field . name ) #NEWLINE# if loader : #NEWLINE# #INDENT# if field . null : #NEWLINE# #INDENT# kwargs [ 'allow_blank' ] = True #NEWLINE# #UNINDENT# return ( field . name , AjaxSelectField ( loader , ** kwargs ) ) #NEWLINE# #UNINDENT# return super ( CustomModelConverter , self ) . handle_foreign_key ( model , field , ** loader )