Re: How to pass List to Form Meta Class

2010-06-07 Thread Bill Freeman
If I understand you correctly, this is difficult. If there are just a few possible value sets for "fields" it is better to make several form classes, one for each subset of the fields that you will need, and choose which form to instantiate depending on which set of fields you want. Note: The ord

How to pass List to Form Meta Class

2010-06-05 Thread ars_sim
Hello All, I am newbie in django and I will very thankful to you if you help me in this regard. I want to pass list of fields from view to Meta class of FormModel. Please check this example. view.py: fields = [name, email, phone] individual_form = IndividualForm(fields) forms.py class IndF