:
u = User.objects.get(pk=1) # Get the first user
user_address = u.get_profile().phone_number # fetch user's phone
number from the db
return render_to_response('chat/chatrooms.html',
{'user_address': user_address})
On Oct 24, 4:14 pm,
r'
/home/mochat/webapps/django/lib/python2.5/django/contrib/auth/
models.py in get_profile, line 293
On Oct 24, 12:54 pm, Brian Neal <[EMAIL PROTECTED]> wrote:
> On Oct 24, 2:23 pm, kylewild <[EMAIL PROTECTED]> wrote:
>
> > I'm having this same issue and the fix
I'm having this same issue and the fix here, as best I can attempt to
apply it, didn't work for me
I had AUTH_PROFILE_MODULE set to "myproject.UserProfile"
After reading this thread, I changed it to "chat.UserProfile" -- to no
avail
In my "chat" directory, I have the model "UserProfile" define
3 matches
Mail list logo