def normalize_col_name(self, col_name, used_column_names, is_relation):
        if self.connection.vendor == 'salesforce':
            beautified = re.sub('__c$', '', col_name)
            beautified = re.sub(r'([a-z0-9])(?=[A-Z])', r'\1_', beautified)
            beautified = beautified.lower()
            new_name, field_params, field_notes = super(Command, self
                    ).normalize_col_name(beautified, used_column_names, is_relation)
            # *reconstructed* : is what will SfField reconstruct to db column
            field_params = OrderedDict(sorted(field_params.items()))
            reconstructed = new_name.title().replace('_', '')
            if col_name.endswith('__c'):
                reconstructed += '__c'
                field_params['custom'] = True
            elif is_relation:
                reconstructed += 'Id'
            # TODO: Discuss: Maybe 'db_column' can be compared case insensitive,
            #       but exact compare is safer.
            if reconstructed != col_name or self.verbosity >= 2:
                field_params['db_column'] = col_name
            else:
                field_params.pop('db_column', None)
            if is_relation:
                if col_name in sf_introspection.last_with_important_related_name:
                    field_params['related_name'] = '%s_%s_set' % (
                            sf_introspection.last_introspected_model.lower(),
                            new_name.replace('_', '')
                            )
                if sf_introspection.last_read_only in col_name:
                    field_params['sf_read_only'] = sf_introspection.last_read_only[col_name]
                if not DJANGO_19_PLUS:
                    field_params['on_delete'] = sf_introspection.SymbolicModelsName('DO_NOTHING')
                reference_to, relationship_order = sf_introspection.last_refs[col_name]
                if len(reference_to) > 1:
                    field_notes.append('Reference to tables [%s]' % (', '.join(reference_to)))
                if relationship_order is not None:
                    # 0 = primary relationship, 1 = secondary relationship, * = any cascade delete
                    field_notes.append('Master Detail Relationship %s' % relationship_order)
        else:
            new_name, field_params, field_notes = super(Command, self
                    ).normalize_col_name(col_name, used_column_names, is_relation)
        return new_name, fix_field_params_repr(field_params), field_notes
dataset/ETHPy150Open django-salesforce/django-salesforce/salesforce/management/commands/inspectdb.py/Command.normalize_col_name/swapped operands of `in`