8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-08-20 14:13:41 +00:00

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

This commit is contained in:
Hugo LEVY-FALK 2018-02-22 19:52:32 +01:00 committed by root
parent 6dae1af936
commit d2d3a66ab1

View file

@ -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)))