Update djblets for future Django deprecations.
Review Request #11921 — Created Jan. 10, 2022 and submitted — Latest diff uploaded
This change updates the Djblets codebase for some upcoming changes to
Django:
- The
authenticate
method in authentication backends needs to take the
request as the first positional argument. - Admin site URLs are now added directly in the
url()
method instead
of throughinclude()
. The Djblets impact here is in loading admin
URLs defined by extensions.
Ran unit tests and saw no more deprecation warnings.
djblets/extensions/manager.py |
---|
djblets/webapi/auth/backends/api_tokens.py |
---|
djblets/webapi/auth/backends/oauth2_tokens.py |
---|