On 11 mar, 07:58, Anoop Thomas Mathew <atm...@gmail.com> wrote: > Hi all, > > I have a Profile model, which has a ForiegnKey to User model. I want to edit > both of it at same form. > > this is what I tried,http://dpaste.de/ODOJ/ > Still, no success. Please help.
You'll have to provide a bit more informations if you hope to get some help - like, what "no success" means *exactly* Now just for the record, chances are your Profile.id is not the same as User.id so there's probably something wrong with your view. Also and FWIW, I had the same need (editing user and profile fields in a same form) in a couple apps, and always ended up writing my own (non- model) form. ModelForms are quite handy, but it's sometimes easier and quicker to write a custom form instead. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.