Commit c7adc15e authored by klafyvel's avatar klafyvel

Revert "Fix du AESEncryptedField"

This reverts commit f02e6c6e
parent f02e6c6e
...@@ -79,12 +79,6 @@ class AESEncryptedField(models.CharField): ...@@ -79,12 +79,6 @@ class AESEncryptedField(models.CharField):
return decrypt(settings.AES_KEY, return decrypt(settings.AES_KEY,
binascii.a2b_base64(value)).decode('utf-8') binascii.a2b_base64(value)).decode('utf-8')
def from_db_value(self, value, *args, **kwargs):
if value is None:
return value
return decrypt(settings.AES_KEY,
def get_prep_value(self, value): def get_prep_value(self, value):
if value is None: if value is None:
return value return value
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