I have UserProfile model defined in settings.py. Now I want to create registration form that have fields both from User and UserProfile models. Is there easy way to do it?
I'm using uni_form to create nice looking forms if this helps.
I have UserProfile model defined in settings.py. Now I want to create registration form that have fields both from User and UserProfile models. Is there 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.