Thursday, March 14, 2013

"condition_dict" and "get_cleaned_data_for_step" triggers multiple queries in FormWizard

Hi,

I made a FormWizard with Django 1.4 according to the FormWizard-documentation with different templates for each form and Conditionally view.
It works, but I found a problem with the Conditionally view. The condition callable triggers, (like show_message_form_condition() from the documentation) get_cleaned_data_for_step and this triggers seven times  get_form_kwargs()
If there is a query in the form, the same querie hits seven times the datebase because of get_form_kwargs()

Is this a bug in Django with
get_cleaned_data_for_step?

I need your help. :(

--
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+unsubscribe@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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate