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
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
2 matches
Mail list logo