-
Notifications
You must be signed in to change notification settings - Fork 55
fix: Remove keyword only argument for RequestsMiddleware #113
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
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
Remove keyword only arguments from request middleware. This causes django to fail when attempting to load middleware. Django currently only supports handlers being passed in as args.
02bbc90
to
5f0d441
Compare
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
@googlebot I signed it! |
Good catch, thanks! Do you think you could add a unit test to catch this going forward? |
Of course @daniel-sanche! I broke my rule about always pushing up a patch with a test, especially when there's a bug. I commented on #112:
Do you know if code gen will cause this to fail going forward? If so, I think it's safe make |
Perfect, thanks!
Yeah, I just took a look at the django documentation and that seems to be the case, so that sounds like a good idea.
The code generator won't be an issue here, it should only impact |
Awesome, I added tests + made |
Great, thanks for your contribution! |
Remove keyword only arguments from request middleware. This causes
django to fail when attempting to load middleware. Django currently only
supports handlers being passed in as args.
Fixes #112 🦕