I have a UserProfile model defined in settings.py. Now I want to create a registration form that has fields from both the User and UserProfile models. Is there an easy way to do it?
I'm using uni_form to create nice-looking forms if this helps.
I have a UserProfile model defined in settings.py. Now I want to create a registration form that has fields from both the User and UserProfile models. Is there an easy way to do it?
I'm using uni_form to create nice-looking forms if this helps.
Just put two children of Form in the view and display them in the template. Use the prefix
argument in the constructors to prevent field name collisions.