2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 11:36:44 +00:00

make args wider

This commit is contained in:
Matthias 2022-05-15 23:26:46 +02:00
parent 9c342e1fe3
commit 74a3abc4a2
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

@ -13,14 +13,14 @@ class SimpleActionPlugin(ActionMixin, InvenTreePlugin):
NAME = "SimpleActionPlugin" NAME = "SimpleActionPlugin"
ACTION_NAME = "simple" ACTION_NAME = "simple"
def perform_action(self): def perform_action(self, user=None, data=None):
print("Action plugin in action!") print("Action plugin in action!")
def get_info(self, user, data): def get_info(self, user, data=None):
return { return {
"user": user.username, "user": user.username,
"hello": "world", "hello": "world",
} }
def get_result(self): def get_result(self, user=None, data=None):
return True return True