from django_cryptography.fields import encrypt
class Users(models.Model):
username = encrypt(models.CharField(max_length=25, blank=False))
this is the error I'm getting
Unsupported lookup 'iexact' for EncryptedCharField or join on the field not permitted.
Is this the correct method to do it? If is there any other easy and more efficient method available please share.
I refer this example from here.
https://github.com/georgemarshall/django-cryptography