Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6182743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:15:06+00:00 2026-05-24T01:15:06+00:00

I am developing a wizard using Formwizard that matches one model. Also due to

  • 0

I am developing a wizard using Formwizard that matches one model.
Also due to the relationships between my model and other models, I am using inlineformset_factory to have the fields present in the template.

I have create 2 forms with the same model for the model attribute. I have just changed the fields attribute to differentiate the 2 forms that I using in my wizard.

For the moment to save the forms informations in my wizard I am doing this:

    def done(self, request, form_list):
    instance = Sale()
    for form in form_list:
        for field, value in form.cleaned_data.iteritems():
            setattr(instance, field, value)
    instance.save()

This works well but doesn’t save my inlineformsets

So I have added this in the done method:

    picture_formset = ProductPictureFormset(request.POST, instance=instance)
    if picture_formset.is_valid():
        picture_formset.save()

But when I do that I have this error in Django:

Exception Type: ValidationError

I have noticed that my data contained in my inline formsets are not passed between steps.
This is how I am adding the inline formset in my wizard right now:

def parse_params(self, request, *args, **kwargs):
    if self.step == 0:
        self.extra_context.update({
            'picture_formset': ProductPictureFormset(),
            'brand_attribute_formset': BrandAttributeFormset()
        })

But it seems I have to find a way to pass the data retrieved in these forms to the second step.

Any idead how to do that?

Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T01:15:06+00:00Added an answer on May 24, 2026 at 1:15 am

    I have refactored a bit my models to be able to save each models at every step in process_step. Also I am storing infos in the session.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a wizard for a machine that is to be used as
While developing a firefox extension, I create a wizard window from overlay.js using: this.wizard
I'm developing an Eclipse RCP based application, that uses the resource model of eclipse
I'm currently developing a custom control that derives from CStatic MFC class (Smart Device
I created a page that has a JQuery based dialog using the standard JQuery
Developing a web application that I've registered with Twitter. In this app, I might
Developing a little survey webapp, ran into problem that deals with ranges for rating
Developing Java, you have always learned that its best to create an ArrayList by
Developing using MVC-3, Razor, C# Been searching around and cannot find advice I'm looking
Developing an application using SWT to work in both Linux and Windows. I created

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.