Managed to figure this out in the end: def add_edit(request, id=None): if id: obj = get_object_or_404(Book, id=id) return ResidentialListingWizard([ResidentialFormStep1, ResidentialFormStep2])(request, instance=obj) else: return ResidentialListingWizard([ResidentialFormStep1, ResidentialFormStep2])(request)
Once all my forms have been filled in, I guess the saving of the data will be handled by my done() method. However, i did notice that in the multi step forms, the names and id's of elements are named according to the step index. for example, the "author" field in a normal django form would have an id of 'id_author', but in the multistep form, if the field is on the first step, the id is now 'id_0-author'. Can i still save my data without modifying my field names in my model? On Dec 6, 12:40 pm, Muhammed Abad <muhammeda...@gmail.com> wrote: > Hi, > > Using the Django FormWizard, is it possible to generate a set forms > that work in an "edit" mode ? i.e. I have already saved some data > using the multiple step form, now I would like to edit this data. > > Any help would be appreciated. > > Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.