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

How can we tokenize any model instance and not just User instance? #255

Open
Irfanwani opened this issue Sep 21, 2021 · 0 comments
Open

Comments

@Irfanwani
Copy link

Instead of a User instance, i provided an instance of a custom model to the AuthToken.objects.create() but it gives an error;

AuthToken.user" must be a "User" instance.

Is there any way to tokenize any model instance??

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

1 participant