Does anyone have any idea or any example to create a CookieWizard that the first step has some extra fields and the next steps based on the same extra fields, are created or updated automatically steps with formset or inlineformset?
I am a relatively new django User.
My current challenge:
I have the following class models to my Gas station manager django app:
diagram:
models:
I need to create a WizzardView Gas Station(Posto), and create related models , and some models related models related to Gas Station(Posto) .
In the initial step , the User shall inform the name of the Gas Station(Posto) and the number of pumps(Bomba) and tanks(Tanque) of Gas Station(Posto).
In the second step , based on number of pumps(Bomba) and tanks(Tanque) set in an initial step, the amount of displayed forms pumps(Bomba) and tanks(Tanque).
For each pump(Bomba), the User should inline insert nozzle(Bico).
I found a project to nested inlines formset. I made a fork and applied modifications, but still not good.
for me , the ideal solution would be that the django have its " simple " to do so , within and outside the django admin .
Maybe something like described in issue 9025 and comment of the silverfix
ps.: Sorry for my horrible English. I'm still learning. I am Brazilian. Short life to google translator, I hope I can survive without it as fast as possible. :-)