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

Refs #31949 -- Made @vary_on_(cookie/headers) decorators work with async functions. #17056

Merged
merged 1 commit into from Jul 10, 2023

Conversation

LomaxOnTheRun
Copy link
Contributor

Reference to #31949.

This PR makes the vary_on_cookie and vary_on_headers decorators able to handle both sync and async views.

Copy link
Member

@felixxm felixxm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LomaxOnTheRun Thanks 👍

I squashed commits, rebased after fb1c763, and simplified tests.

@felixxm felixxm merged commit b7a17b0 into django:main Jul 10, 2023
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants