Re: commit=false and user id

2011-09-27 Thread David
Great food for thought. Thank you for your help Tom! -- 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 django-users+unsubscr...@goog

Re: commit=false and user id

2011-09-27 Thread Tom Evans
On Tue, Sep 27, 2011 at 4:15 PM, David wrote: > Hi Tom > > I had been using ajax on the form and thus hadn't got my traceback. I > removed all ajax to get the traceback and it says: > > 'WSGIRequest' object has no attribute 'person' > > Relating to: > > f.person = request.person > > I guess. Do I

Re: commit=false and user id

2011-09-27 Thread David
Hi Tom I had been using ajax on the form and thus hadn't got my traceback. I removed all ajax to get the traceback and it says: 'WSGIRequest' object has no attribute 'person' Relating to: f.person = request.person I guess. Do I have to add a hidden field for the person id? -- You received th

Re: commit=false and user id

2011-09-27 Thread Tom Evans
On Tue, Sep 27, 2011 at 4:06 PM, David wrote: > Hi Tom > > I am unsure, yes it could be request.person that isn't populated. How > can I pass that through my form submission ? > > Thanks for your reply. > How can you be unsure? What does your traceback say? Debugging by guesswork is slow and err

Re: commit=false and user id

2011-09-27 Thread David
Hi Tom I am unsure, yes it could be request.person that isn't populated. How can I pass that through my form submission ? Thanks for your reply. -- 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@

Re: commit=false and user id

2011-09-27 Thread Tom Evans
On Tue, Sep 27, 2011 at 3:55 PM, David wrote: > Hopefully this will make sense. > > You are on a page displaying information about a Person. You want to > add a log to this person so you fill in the form at the bottom of the > page. When that form is saved to a log object both the user that has >

commit=false and user id

2011-09-27 Thread David
Hopefully this will make sense. You are on a page displaying information about a Person. You want to add a log to this person so you fill in the form at the bottom of the page. When that form is saved to a log object both the user that has submitted the log, and the person to whom the log belongs