mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-04 14:28:48 +00:00
fix assingment
This commit is contained in:
parent
3b6e31cd35
commit
0fecf3c0bc
@ -102,10 +102,10 @@ class ActionPluginView(APIView):
|
|||||||
})
|
})
|
||||||
|
|
||||||
action_plugins = plugin_registry.with_mixin('action')
|
action_plugins = plugin_registry.with_mixin('action')
|
||||||
for plugin_class in action_plugins:
|
for plugin in action_plugins:
|
||||||
if plugin_class.action_name() == action:
|
if plugin.action_name() == action:
|
||||||
# TODO @matmair use easier syntax once InvenTree 0.7.0 is released
|
# TODO @matmair use easier syntax once InvenTree 0.7.0 is released
|
||||||
plugin = plugin_class.init(request.user, data=data)
|
plugin.init(request.user, data=data)
|
||||||
|
|
||||||
plugin.perform_action()
|
plugin.perform_action()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user