'Is parent of this object already published?'

def _publisher_can_publish(self):

    if self.parent_id:
        try:
            return bool(self.parent.publisher_public_id)
        except AttributeError:
            raise PublisherCantPublish
    return True
