georgemarshall / django-cryptography

Easily encrypt data in Django
https://django-cryptography.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
371 stars 70 forks source link

Error when saving Data #52

Open MuhammadShahryiar opened 3 years ago

MuhammadShahryiar commented 3 years ago

Unsupported lookup 'exact' for EncryptedCharField or join on the field not permitted, perhaps you meant exact or iexact?

thismatters commented 3 years ago

Please see https://github.com/georgemarshall/django-cryptography/issues/10

Given the nature of data encryption, anything other than isnull is not query-able. This is a side affect of encrypting the data in the first place, as the output will change even when the input does not.