Django way of customizing the user creation is by adding UserProfile model, however when I am performing user registration, I would like the user to fill all the details, including the ones in the user profile as well.
Using forms.ModelForm seems like the easiest way, however I am dealing here with two models. What is the easiest way to accomplish that?
Thanks
UserCreationForm
may come in handy.
Found the answer: http://uswaretech.com/books/djangodesignpatterns/misc.html#saving-multiple-objects-in-one-form
Have a look at this too: http://docs.djangoproject.com/en/dev/topics/forms/formsets/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With