Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

Commit d2d3a66a authored by Levy--Falk Hugo's avatar Levy--Falk Hugo 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