tags:

views:

29

answers:

1

Is there an easy way to access the user's profile in a view, something like user.profile.my_field?

+2  A: 

OK, worked it out. It's user.get_profile.my_field.

Roger
You forgot the most important part of this: http://docs.djangoproject.com/en/dev/topics/auth/#django.contrib.auth.models.User.get_profile
S.Lott
@Roger: Go ahead and accept your answer as well.
Manoj Govindan
@Manoj lol. :-)
mirnazim