I am currently working on building a survey. The parent model 'Person' is linked to a 'Question' model via ManytoMany relationship. Both Question and Person model are linked to an 'Answer' model via foreign key.
Currently, I am having issues using the Form Wizard which consists of two steps: First step is the Person form and the second step is the form consisting of an inline formset linking the Person and Answer model. On saving the forms to the database in the 'done' function of the wizard, I seem to be getting the error "*save() prohibited to prevent data loss due to unsaved related object 'person*." I guess this error is due to the foreign key relationship between Person and Answer models but I am unclear on how to implement this in the WizardView. Thanks in advance for any help provided. -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b9d2fa4d-73e0-4372-8da6-fdc6f87870cd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.