'Translate a field attribute name to a database field name.'

@classmethod
def _translate_field_name(cls, field, sep='.'):

    parts = field.split(sep)
    parts = [f.db_field for f in cls._lookup_field(parts)]
    return '.'.join(parts)
