Monday, November 23, 2015

Django formtools wizard with variable number of steps?

I'm wondering if I can use django-formtools to accomplish what I want to. I have a License object, with a one to many relationship to LicenseArea. The number of LicenseArea objects varies for each license, so I would like a wizard that has:

Step 0 - the license data
Step 1 - the common data for all LicenseArea objects
Step 2-through n - The same form for each LicenseArea to enter the unique data for each LicenseArea

I've currently implemented this as two steps, one for the License, and then a Formset for each LicenseArea, but as the amount of data for each LicenseArea is significant, the UI leaves a great deal to be desired. I was thinking one step for each LicenseArea would work better. Is this possible, and if so, how best would I implement this? Thanks.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9a1d3f70-2699-4aea-a34a-65fc70237a45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment