You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Encrypting the models are good, but after the encryption, if I want to get the data by the id of the row i get the exception error like mentioned above.
My Modal
from fernet_fields import EncryptedCharField
class MyModal(models.Model):
name = EncryptedCharField(max_length=50, default='')
My code
from app.models import MyModal
def get_details(request):
data_id = request.GET.get('id')
data = MyModal.objects.filter(id=data_id)
print data
return HttpResponse('Success')
The text was updated successfully, but these errors were encountered:
Hello,
Encrypting the models are good, but after the encryption, if I want to get the data by the id of the row i get the exception error like mentioned above.
My Modal
My code
The text was updated successfully, but these errors were encountered: