'The Connection on which this object is available.
Access raises AttributeError if there is no Connection, or more than
one Connection.
Changed in 0.82.0: AttributeError can be raised.'

@property
def connection(self):

    if (self._connection is _MANY):
        raise AttributeError(('Object    %r    is    on    more    than    one    Connection:    use    Object.locations    instead' % self))
    elif (self._connection is None):
        raise AttributeError(('Object    %r    has    no    Connection    yet' % self))
    else:
        return self._connection
