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:
@ -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",
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user