Replies: 1 comment 1 reply
-
Yeah, this was a bit of an oversight. It might be possible to add it in a backwards compatible way by checking if the hook accepts kwargs or a request argument. import inspect
signature = inspect.signature(some_hook)
if {i for i in bar.parameters.keys()}.intersection({'kwargs', 'request'}):
some_hook(request=request) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Would be useful in cases where you want to conditionally change row values based on extra information in the request context.
Beta Was this translation helpful? Give feedback.
All reactions