django-unfold icon indicating copy to clipboard operation
django-unfold copied to clipboard

Object-dependent actions

Open juanfcocontreras opened this issue 4 months ago • 3 comments

I would like my detail actions to be dependent (to be shown or hidden) depending on certain values contained in the fields. To do this I use the function get_actions_detail, but it doesn't get the object obj, so I can't access the fields.

I have seen both a pull request (closed without accepting) and an issue that the creator himself closes but not with a solution.

So my question is if right now there is any way to show or hide actions depending on object values?

If not, could the Pull Request be reconsidered? I think it is a minor change and provides functionality that may be useful to users (as evidenced by their votes).

Thanks in advance!

juanfcocontreras avatar Mar 07 '24 15:03 juanfcocontreras