I am fairly new to Django and I am a bit confused about how to make forms work. I am able to make a single form based on a model I have, but how can I make 3 forms where the second form is generated based on the first form's inputs and the third form is based on the 2nd form's inputs?
For example:
First form: Input your location (city, state, country) Second form (generated after the first form completed): If country X, then exclude A field in the second form or if the country in the previous form was Y, then exclude B field in the second form. Third form: similar idea as second form.
Lastly, how do I prevent any database commits until all 3 forms are completed?
Thanks for any inputs!