jyveapp / django-action-framework

Create many types of interfaces from functions
https://django-action-framework.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
18 stars 3 forks source link

Parameter-less actions #12

Open jayvdb opened 4 years ago

jayvdb commented 4 years ago

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.