From 0fecf3c0bc6bd0659cb1647c4bb143ecc629f0af Mon Sep 17 00:00:00 2001
From: Matthias <matthias.mair@oewf.org>
Date: Mon, 10 Jan 2022 23:50:00 +0100
Subject: [PATCH] fix assingment

---
 InvenTree/InvenTree/api.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/InvenTree/InvenTree/api.py b/InvenTree/InvenTree/api.py
index 18b11211ca..0d3cc39610 100644
--- a/InvenTree/InvenTree/api.py
+++ b/InvenTree/InvenTree/api.py
@@ -102,10 +102,10 @@ class ActionPluginView(APIView):
             })
 
         action_plugins = plugin_registry.with_mixin('action')
-        for plugin_class in action_plugins:
-            if plugin_class.action_name() == action:
+        for plugin in action_plugins:
+            if plugin.action_name() == action:
                 # 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()