6๐
โ
f_user = User.objects.get(username=request.user.id)
Username is presumabely request.user.username
Or, just user User.objects.get(id=request.user.id)
Actually what is my caffienated ass saying? You have your user object right there!
request.user
: )
Source:stackexchange.com