django-unfold
django-unfold copied to clipboard
Object-dependent actions
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!