예제 #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)
예제 #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)
예제 #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)
예제 #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)