mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 19:33:11 +00:00
Répare le champ AESField (test de value inutile)
This commit is contained in:
parent
6dae1af936
commit
d2d3a66ab1
1 changed files with 0 additions and 2 deletions
|
@ -33,8 +33,6 @@ def decrypt(key, s):
|
||||||
|
|
||||||
class AESEncryptedField(models.CharField):
|
class AESEncryptedField(models.CharField):
|
||||||
def save_form_data(self, instance, data):
|
def save_form_data(self, instance, data):
|
||||||
if value is None:
|
|
||||||
return value
|
|
||||||
setattr(instance, self.name,
|
setattr(instance, self.name,
|
||||||
binascii.b2a_base64(encrypt(settings.AES_KEY, data)))
|
binascii.b2a_base64(encrypt(settings.AES_KEY, data)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue