[Fixed]-Django Allauth – int() argument must be a string or a number, not 'ReverseSingleRelatedObjectDescriptor'

1πŸ‘

βœ…

In your view, SocialAccount is the model itself, not a particular instance of it. You would need to actually query for the account you want, like you do with the token.

But I’m not sure why you are doing anything with SocialAccount in the first place. You actually want the user, which is presumably just request.user; use that instead.

Leave a comment