Hi,

I have a form wizard view with 2 required forms & 1 optional form in it. 
I'm seeing an occasional error during submission. Here's my named forms:

DONATE_FORMS = [("donate", DonateFormItemInformation), ("delivery", 
DonateFormDeliveryMethod), ("about", DonateFormAbout)]

My URL entry:

login_required(DonateWizard.as_view(DONATE_FORMS, 
condition_dict=DONATE_CONDITION_DICT)),

My condition dictionary:

DONATE_CONDITION_DICT = {'about': show_donor_about_form}

Finally the condition itself:

def show_donor_about_form(wizard):
    return wizard.request.user.is_authenticated() and not 
wizard.request.user.has_donor_profile()

The error I'm getting is:

ValueError: u'about' is not in list 

The odd part is that the in the logs for this error, I'm seeing the form 
data for 'about'. So the user is getting to the form, entering data, & 
submitting it, then the error occurs. I can't reproduce this reliably. 
After digging into the django source, looks like the get_form_list method 
regenerates the form_list every step. So could the condition return true 
before the form is display, then suddenly return false after the form 
submission?

Any help is appreciated.

Thanks,
Griffin

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c69da2ed-8d22-47a2-b5de-d5e021dd6069%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to