I was trying to extend the user model as described here:
http://www.b-list.org/weblog/2006/06/06/django-tips-extending-user-model

but, when I tried to view it, I got an error:
 Cannot resolve keyword 'user' into field

Here's my view.py
def profile(request, username):
    uname = User.objects.get(username=username)
    profile = uname.get_profile()

    gender = profile.gender
    age = profile.age

    return render_to_response('home.html',
        {'detail' : uname,
         'gender' : gender,
         'age' : age})

Anyone know whats wrong with it?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to