def get_db_prep_value(self, value, *args, **kwargs): value = super(EncryptedTextField, self).get_db_prep_value(value, *args, **kwargs) return encrypt(value)
def get_db_prep_value(self, value, *args, **kwargs): if isinstance(value, six.binary_type): value = value.decode('utf-8') value = super(EncryptedPickledObjectField, self).get_db_prep_value(value, *args, **kwargs) return encrypt(value)
def get_db_prep_value(self, value, *args, **kwargs): value = super(EncryptedTextField, self).get_db_prep_value( value, *args, **kwargs) return encrypt(value)
def get_db_prep_value(self, value, *args, **kwargs): if isinstance(value, six.binary_type): value = value.decode('utf-8') value = super(EncryptedPickledObjectField, self).get_db_prep_value( value, *args, **kwargs) return encrypt(value)
def get_db_prep_value(self, value, *args, **kwargs): value = super().get_db_prep_value(value, *args, **kwargs) return encrypt(value)
def get_db_prep_value(self, value, *args, **kwargs): if isinstance(value, bytes): value = value.decode("utf-8") value = super().get_db_prep_value(value, *args, **kwargs) return encrypt(value)