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

`get_hook_result` not targeting the specified action

Open lucasob opened this issue 2 years ago • 0 comments

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

lucasob avatar Aug 22 '22 03:08 lucasob