Re: form_for_instance + user profile

2007-09-13 Thread MikeHowarth
Well I thought I had this working but it turns out it was previous form I had set up manually. At the moment I'm getting no form returned at all, from reading the documentation I'm struggling to see what I'm doing wrong. My UserProfile model is sat in eshop.shop.models, I'm referencing this in s

Re: form_for_instance + user profile

2007-09-12 Thread MikeHowarth
Yep all working now! On Sep 12, 8:11 pm, RajeshD <[EMAIL PROTECTED]> wrote: > > Basic example: > > > user = User.objects.get(id=1) > > user_profile = user.get_profile() > > This should work if you have settings.AUTH_PROFILE_MODULE pointing to > your UserProfile model. > See:http://www.b-list.org

Re: form_for_instance + user profile

2007-09-12 Thread RajeshD
> > Basic example: > > user = User.objects.get(id=1) > user_profile = user.get_profile() This should work if you have settings.AUTH_PROFILE_MODULE pointing to your UserProfile model. See: http://www.b-list.org/weblog/2006/jun/06/django-tips-extending-user-model/ --~--~-~--~~---

form_for_instance + user profile

2007-09-12 Thread MikeHowarth
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: us