'Return ``True`` if this object has an identity key.
This should always have the same value as the
expression ``state.persistent or state.detached``.'

@property
def has_identity(self):

    return bool(self.key)
