I've had a read through the docs and have created a UserProfile object
with a ForeignKey to Djangos User object.

What I want to be able to do is load the UserProfile so this can then
be edits.

I tried this last night (admittedly not very hard) and didn't seem to
have any joy.

Basic example:

user = User.objects.get(id=1)
user_profile = user.get_profile()
user_form = form_for_instance(user_profile, fields=('a field I want to
filter'))

Should this work or should I be loading the user profile like so:

user = User.objects.get(id=1)
user_profile = UserProfile(user)


--~--~---------~--~----~------------~-------~--~----~
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