Ejemplo n.º 1
0
    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)
Ejemplo n.º 2
0
    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)
Ejemplo n.º 3
0
    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)
Ejemplo n.º 4
0
    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)