-
Notifications
You must be signed in to change notification settings - Fork 55
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
fix: Added support for Django42 #346
Conversation
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.
make validate
command installs Django==3.2.20
from requirements/base.txt
before running tests which overrides the Django version installed by tox when setting up the environment so we won't be able to run tests with multiple django versions in CI.
The current CI Djanog 4.2 checks are also running tests with Django 3.2 [See the Django40 warnings still being produced in the logs for proof].
In short, we can remove this addition of django42
in the current PR and do the jump directly from Django 32
to Django42
in the follow up Upgrade PR.
0e42ae5
to
4f3f3b0
Compare
@@ -33,7 +33,7 @@ class HasAccessToken(BasePermission): | |||
def has_permission(self, request, view): | |||
if getattr(settings, 'DISABLE_TOKEN_CHECK', False): | |||
return True | |||
token = request.META.get('HTTP_X_ANNOTATOR_AUTH_TOKEN', '') | |||
token = request.headers.get('x-annotator-auth-token', '') |
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.
Reason for change: https://docs.djangoproject.com/en/4.2/releases/2.2/#requests-and-responses
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.
This looks good to me, thanks
Issue: #344