django-forestadmin
django-forestadmin copied to clipboard
`get_hook_result` not targeting the specified action
Expected behavior
HookView::get_hook_result
does not search for the specific hook. It is expected that the action_name
be respected, and only that action's hook be executed.
Actual behavior
The returned value is incorrect, as it could be None, or, the result of another action's hook. In the current implementation, it will be the last registered action's hook's result.
Context
- Package Version: 1.3.3
- Django Version: 3.2.13