August 6, 2014, 11:27pm
I have a User model that stores username and password, and a UserProfile model that stores things such as first and last name.
When I create my signup form, should I create a Signup model that collects information for both User and UserProfile models, or can I pass both models into my Signup view?
August 7, 2014, 6:40am
you don’t have to create a SignupForm model just create the form in your signup view and collect the data in you controller since you already have models for User and UserProfile
August 7, 2014, 9:31am
That’s what I figured, but only after… I started to create a Signup form, but realized it was most likely the wrong choice because I was repeating in the new model what I already had in User and UserProfile.
August 7, 2014, 10:35am
See this wiki:
How to use a single form to collect data for two or more models?