0

I implemented django-formtools SessionWizardView with a navbar, so I can jump between steps if I want to update existing instances.

My problem is, if I want to edit an instance I have to submit all forms, so they are valid and render_done is called.

1 Answer 1

-1

There is no need to use FormWizard. You could split up your UpdateForms into several ones, each with a restricted set of fields to edit on the form.

There is a fields variable available in the models.UpdateView class to define which fields should be visible on the UpdateForm.

Then connect your navbar to the several UpdateViews and you are done.

Sign up to request clarification or add additional context in comments.

1 Comment

Your answer does not resolve the issue, I am afraid. I use formtools for creation and it works with update views as well.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.