Commit d2d3a66a authored by Hugo LEVY-FALK's avatar Hugo LEVY-FALK Committed by root

Répare le champ AESField (test de value inutile)

parent 6dae1af9
......@@ -33,8 +33,6 @@ def decrypt(key, s):
class AESEncryptedField(models.CharField):
def save_form_data(self, instance, data):
if value is None:
return value
setattr(instance, self.name,
binascii.b2a_base64(encrypt(settings.AES_KEY, data)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment