I am using a SessionWizardView and would like to get information about the currently logged in user.
From what I know, something similar is achieved in a normal view by doing the following:
user_profile = (User.objects.get(id=request.session['_auth_user_id'])).get_profile()
Since SessionWizardView is supposed to be based on sessions I would expect this to be an easy task but I simply can’t find a solution… Or am I doing something wrong?
Maybe i’m not getting you right, but if you’re using the default django authentication system, you can always get the currently logged in user by calling
request.user(as seen here).