def _fields_for_mapping(self, mapping):
    fields = []
    for (sf_field, db_field) in mapping.get('fields', {}).items():
        fields.append({'sf': sf_field, 'db': db_field})
    for (sf_field, lookup) in mapping.get('lookups', {}).items():
        fields.append({'sf': sf_field, 'db': get_lookup_key_field(lookup, sf_field)})
    return fields
def _fields_for_mapping(self, mapping):
    fields = []
    for (sf_field, db_field) in mapping.get('fields', {}).items():
        fields.append({'sf': sf_field, 'db': db_field})
    for (sf_field, lookup) in mapping.get('lookups', {}).items():
        fields.append({'sf': sf_field, 'db': get_lookup_key_field(lookup, sf_field)})
    return fields