def _save(self, *args, **kwargs): signal_send_off(self, models.signals.pre_save) signal_send_off(self, models.signals.post_save) super(VersionModel, self).save(*args, **kwargs) signal_send_on(self, models.signals.pre_save) signal_send_on(self, models.signals.post_save)
def _delete(self, using=None, *args, **kwargs): signal_send_off(self, models.signals.pre_delete) signal_send_off(self, models.signals.post_delete) super(VersionModel, self).delete(using=None, *args, **kwargs) signal_send_on(self, models.signals.pre_delete) signal_send_on(self, models.signals.post_delete)