pgcrypto/mixins.py
def pre_save(self, model_instance, add):
        """Save the original_value."""
        if self.original:
            original_value = getattr(model_instance, self.original)
            setattr(model_instance, self.attname, original_value)

        return super(HashMixin, self).pre_save(model_instance, add)
def pre_save(self, model_instance, add):
        """Save the original_value."""
        if self.original:
            original_value = getattr(model_instance, self.original)
            setattr(model_instance, self.attname, original_value)

        return super(HashMixin, self).pre_save(model_instance, add)
def pre_save ( self , model_instance , add ) : if self . original : original_value = getattr ( model_instance , self . original ) setattr ( model_instance , self . attname , original_value ) return super ( HashMixin , self ) . pre_save ( model_instance , add )
Save the original_value.
Save the original_value .