1π
β
At that point in the code, proficiencies_formset
is a formset object, not a class.
proficiencies_formset = job_proficiencies(queryset=qset)
...
form = proficiencies_formset(request.POST)
I think what you mean there is:
proficiencies_formset = job_proficiencies(request.POST)
And then later:
# Save proficiencies
for f in proficiencies_formset:
This kind of thing is one reason I like to maintain the convention of using capital letters to begin class names, even when the class is constructed by a factory.
π€Peter DeGlopper
Source:stackexchange.com