Example #1
0
 def get_db_prep_value(self, value, *args, **kwargs):
     value = super(EncryptedTextField, self).get_db_prep_value(value, *args, **kwargs)
     return encrypt(value)
Example #2
0
 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)
Example #3
0
 def get_db_prep_value(self, value, *args, **kwargs):
     value = super(EncryptedTextField, self).get_db_prep_value(
         value, *args, **kwargs)
     return encrypt(value)
Example #4
0
 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)
Example #5
0
 def get_db_prep_value(self, value, *args, **kwargs):
     value = super().get_db_prep_value(value, *args, **kwargs)
     return encrypt(value)
Example #6
0
 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)