@classmethod
def fields(cls):
    """
        List of field names for this table.

        Mostly for backwards compatibility in the code (that uses ``fields``).
        """
    fields = set(cls._iter_association_proxies())
    fields.update(cls.__table__.columns.keys())
    return fields - set(getattr(cls, '__private_fields__', ()))
