#NEWLINE# def get_column_names( self , only_columns , excluded_columns ) : #NEWLINE# #INDENT# '\n            Returns a list of tuples with the model field name and formatted\n            field name.\n\n            :param only_columns:\n                List of columns to include in the results. If not set,\n                `scaffold_list_columns` will generate the list from the model.\n            :param excluded_columns:\n                List of columns to exclude from the results if `only_columns`\n                is not set.\n        ' #NEWLINE# if excluded_columns : #NEWLINE# #INDENT# only_columns = [ c for c in excluded_columns if ( c not in excluded_columns ) ] #NEWLINE# #UNINDENT# return [ ( c , self . get_column_name ( c ) ) for c in only_columns ]