#NEWLINE# def discover_choosers( ) : #NEWLINE# #INDENT# logger . debug ( 'Discovering choosers for model fields...' ) #NEWLINE# for model in get_models ( ) : #NEWLINE# #INDENT# if AFTER17 : #NEWLINE# #INDENT# allfields = model . _meta . fields #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# allfields = ( model . _meta . fields + model . _meta . virtual_fields ) #NEWLINE# #UNINDENT# for field in allfields : #NEWLINE# #INDENT# check_for_chooser ( model , field )