I have declared the following form
form = BudgetPageInitial()
in my view.py, what I want is to pass on a variable(say ‘x’) into the BudgetPageInitial(), so that I can use that variable in the forms definition in forms.py to generate ‘x’ number of input fields int he form BudgetPageInitial.
Please guide me to do so.
View
Form
This is the design pattern you can use to pass variables to your form definition as I have with
misc.