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 @csrf_exempt decorator work with async functions. #17055

Merged
merged 1 commit into from Jul 10, 2023

Conversation

LomaxOnTheRun
Copy link
Contributor

Reference to #31949.

This PR makes the csrf_exempt decorator able to handle both sync and async views.

@LomaxOnTheRun LomaxOnTheRun changed the title Refs #31949 -- Made @csrf_exempt decorator to work with async functions. Refs #31949 -- Made @csrf_exempt decorator work with async functions. Jul 8, 2023
@felixxm felixxm self-assigned this Jul 10, 2023
@felixxm felixxm force-pushed the async-csrf-exempt-decorator branch from 87684bd to 953f81e Compare July 10, 2023 06:02
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 👍

@felixxm felixxm merged commit 953f81e 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