def _pre_publish(self, dry_run, all_published, deleted=False):
    if (not dry_run):
        sender = self.__class__
        pre_publish.send(sender=sender, instance=self, deleted=deleted)
def _pre_publish(self, dry_run, all_published, deleted=False):
    if (not dry_run):
        sender = self.__class__
        pre_publish.send(sender=sender, instance=self, deleted=deleted)