[Answer]-Django: Updating Object in Forms with Custom Save Method

1👍

What is problem that you are seeing? Get error or object is not saved?

Probably the indentation in your done() method is not correct, so its not calling the form.save(). It should be like :

class MyWizard(SessionWizardView):
    file_storage = FileSystemStorage(location=os.path.join(settings.MEDIA_ROOT))
    def done(self, form_list, **kwargs):
        ... 
        #existing code

        if not thing:
            instance = Thing()

        #this is moved out of if
        for form in form_list:
            form.save(instance)

        instance.user = self.request.user
        instance.save()
        return render_to_response('wizard-done.html', {
                'form_data': [form.cleaned_data for form in form_list],})
👤Rohan

Leave a comment