Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django Form Wizard and Preview with ModelForm

I have a large Django model (73 fields) that will will be connected to a ModelForm. I'd like to use a combination of the functionality found the Form Wizard and Form Preview contrib apps.

I.e., the form fields would be split over multiple pages, and the user would have a chance to review/preview the data before the model instance is created.

Are there any best-practices for this type of thing, or example code?

like image 778
Brian Tol Avatar asked Nov 11 '09 16:11

Brian Tol


1 Answers

I do a similar thing at my first Django project. Using session-based FormWizard, I customized it so user can stop subbmiting data at any form.

At that point you can use FormPreview probably to show information or just dynamically generate form and show it to user. Data stays in the session.

like image 126
iElectric Avatar answered Sep 30 '22 22:09

iElectric