Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.
This repository was archived by the owner on May 29, 2026. It is now read-only.

Support extra generic key/values in django middleware #106

Open

Description

@thomas-riccardi

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.

Activity

  1. sriArca commented on Dec 6, 2024

    @sriArca

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions