Make FormSet and related classes declarable
|Reported by:||bpeschier||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
FormSets are now created with factories, but similar to ModelForm, it is entirely possible to declare a custom F!ormSet; the only thing missing are the defaults on the base classes in the code.
The idea is that you should be able to do:
class MyFormSet(formsets.FormSet): can_delete = True form = MyForm extra = 3
This is similar how we now teach people how to use ModelForms and opens up possibilities to override/extend behaviour.