I have several actions which do not need a form for any parameters. They only need the list of pk 80% of the usages.
If I use form_class = forms.Form I am shown a page which has a "Submit" button.
This would be fine.
Being able to omit form_class , and even put actions directly into ActionMixin.daf_actions would simplify adoption of daf.
Most sites will already have many function which only require an object or a queryset. If they can get them working in Django admin with only a tiny bit of boilerplate/wrapper, they can use it immediately for simple cases, and can see it is worth investing more time to provide forms for an optional parameters.
I have several actions which do not need a form for any parameters. They only need the list of
pk
80% of the usages.If I use
form_class = forms.Form
I am shown a page which has a "Submit" button. This would be fine.Being able to omit
form_class
, and even put actions directly intoActionMixin.daf_actions
would simplify adoption of daf.Most sites will already have many function which only require an object or a queryset. If they can get them working in Django admin with only a tiny bit of boilerplate/wrapper, they can use it immediately for simple cases, and can see it is worth investing more time to provide forms for an optional parameters.