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
Fixed #35030 -- Made django.contrib.auth decorators to work with async functions. #17621
Fixed #35030 -- Made django.contrib.auth decorators to work with async functions. #17621
Conversation
9e069c4
to
ae336d9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HappyDingning Thanks 👍 I left more comments.
@bigfootjon Do you want to take a look?
c73ee01
to
943be50
Compare
@bigfootjon Do you wan to take a look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks on the right track! I think we should cover all sync/async combinations, but otherwise this looks good to me!
(@HappyDingning you might want to refer to this section of the contributing guide to make sure you automatically comply with Django's code formatting rules: https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/coding-style/#pre-commit-checks. Or otherwise read that document page so you know what the CI jobs expect) |
I'm so sorry, I'm using vscode in chrome, because I'm outside and inconvenient to use my own computer. I will rebase my commit later. |
No problem on my end! Just looked like you were having a bad time fighting the code-style rules and thought that could help. (I'm heading to bed, good luck with getting CI to pass, I can take another pass at reviewing tomorrow [America timezone]) |
dedb192
to
3b1a4d3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@HappyDingning Thanks 👍 I'll start working on this patch after merging some extra tests, #17943. |
Please don't push changes to this branch. I'll work on it tomorrow. |
3b1a4d3
to
4b1bd61
Compare
@HappyDingning Thanks 👍 I pushed final edits. |
4b1bd61
to
5493209
Compare
Test failure is not related with this PR. |
Hi, dear reviewers,
Follow up to ticket-35030, I have achieved the
alogin_required
, theapermission_required
and the corresponding test cases. I haven't write the documentation yet. Could you please review the code first? I will write the documentation soon.Thank you.