#NEWLINE# def _find_extensions( app_label , model_name ) : #NEWLINE# #INDENT# ext = [ ] #NEWLINE# suffix = ( 'extensions.%s.%s' % ( app_label , model_name . lower ( ) ) ) #NEWLINE# modules = filter ( None , [ try_import ( ( '%s.%s' % ( app_name , suffix ) ) ) for app_name in settings . INSTALLED_APPS ] ) #NEWLINE# for module in modules : #NEWLINE# #INDENT# for cls in get_classes ( module , models . Model ) : #NEWLINE# #INDENT# ext . append ( cls ) #NEWLINE# #UNINDENT# #UNINDENT# return ext