2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 20:45:44 +00:00

pass through request data

This commit is contained in:
Matthias
2022-05-15 18:41:39 +02:00
parent 23608e6933
commit cced30c081
3 changed files with 8 additions and 8 deletions

View File

@ -16,9 +16,9 @@ class SimpleActionPlugin(ActionMixin, InvenTreePlugin):
def perform_action(self):
print("Action plugin in action!")
def get_info(self):
def get_info(self, user, data):
return {
"user": self.user.username,
"user": user.username,
"hello": "world",
}