Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support extra generic key/values in django middleware #106

Open
thomas-riccardi opened this issue Mar 31, 2022 · 1 comment
Open

Support extra generic key/values in django middleware #106

thomas-riccardi opened this issue Mar 31, 2022 · 1 comment

Comments

@thomas-riccardi
Copy link

It would be great to be able to add extra/custom/generic key/value in the django middleware.

The usage could be something like that:

SQLCOMMENTER_WITH_EXTRA_VALUES = 'my.get_extra_values'
# or
SQLCOMMENTER_WITH_EXTRA_VALUES = my.get_extra_values

def get_extra_values(request):
    # ... using `request`
    return {'my_custom_key': 'my_custom_value'}

I'm willing to work on a PR if the idea is accepted.

@sriArca
Copy link

sriArca commented Dec 6, 2024

Hey Guys. Any updates on this? is this feature supported by any chance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants