def new_version(self, session):
    session.expire(self.parent, ['child'])
    Versioned.new_version(self, session)
    self.parent.child = self
def new_version(self, session):
    session.expire(self.parent, ['child'])
    Versioned.new_version(self, session)
    self.parent.child = self