How can we tokenize any model instance and not just User instance?
Irfanwani opened this issue · 0 comments
Irfanwani commented
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??