예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #5
0
파일: encrypted.py 프로젝트: pasala91/test
 def get_db_prep_value(self, value, *args, **kwargs):
     value = super().get_db_prep_value(value, *args, **kwargs)
     return encrypt(value)
예제 #6
0
파일: encrypted.py 프로젝트: pasala91/test
 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)