Skip to content

ERROR: View with multi related views, each has its actions, when moving from related view to another, gives error on calling actions #2407

@yjad

Description

@yjad

Version: FAB 5.0.1
The code does not reload the actions when going from related view to another and hence gives error as it could not locate the actions of the current view:

File "C:\Yahia\Python\FAB5\venv\Lib\site-packages\flask_appbuilder\views.py", line 306, in get_action_permission_name
self.actions.get(name).func.name
^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'func'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions