Sagar Bhadarka
2018-08-14 07:11:55 UTC
Hello,
I am trying to do encryption on the fields that I have in my django model.
But I'm getting error. below is the code and library that I used.
I used python-3.6.4, django-2.0.7 and django-cryptography2.3
code:-
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
I am trying to do encryption on the fields that I have in my django model.
But I'm getting error. below is the code and library that I used.
I used python-3.6.4, django-2.0.7 and django-cryptography2.3
code:-
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
--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.