0

I have a situation where I have a form with 8 fields.

  1. Two of which (First Name and Last Name) will go to the User model of django
  2. The remaining six will go to the UserProfile model of my application

Now keeping in mind that I have a single form on the page. How can I use the UpdateView of django to update two different models coupled to a single form?

zkk
  • 207
  • 1
  • 8
  • 1
    yo can overridin the save method . take a look at [this][1] [1]: http://stackoverflow.com/questions/817284/overriding-the-save-method-in-django-modelform – Hasan Ramezani Aug 31 '14 at 17:50
  • You could have just created UserProfile such that it extended User. – AdelaN Sep 01 '14 at 08:37

0 Answers0