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.
π€Daniel Roseman
Source:stackexchange.com