Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retriving Data from Models raising Invalid token, No exception message supplied Error #9

Open
AnandMoorthy opened this issue Dec 6, 2017 · 2 comments

Comments

@AnandMoorthy
Copy link

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

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')
@PaverApp
Copy link

Did you ever find a fix for this?

@Mrfad
Copy link

Mrfad commented Jun 15, 2023

same happens with me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants