2👍
✅
form = PortfolioForm()
tuple((field_name, form.fields[field_name].widget.__class__) for field_name in form.fields)
Within methods you can change form.
on self.
Source:stackexchange.com