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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just put two children of Form in the view and display them in the template. Use the
prefixargument in the constructors to prevent field name collisions.