Update djblets for future Django deprecations.

Review Request #11921 — Created Jan. 10, 2022 and submitted — Latest diff uploaded

Information

Djblets
release-3.x

Reviewers

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 through include(). The Djblets impact here is in loading admin
    URLs defined by extensions.

Ran unit tests and saw no more deprecation warnings.

Diff Revision 2 (Latest)

orig
1
2

Commits

First Last Summary ID Author
Update djblets for future Django deprecations.
This change updates the Djblets codebase for some upcoming changes to Django: - `User.is_anonymous` and `User.is_authenticated` have been changed to be properties rather than methods. - 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 through `include()`. The Djblets impact here is in loading admin URLs defined by extensions. Testing Done: Ran unit tests and saw no more deprecation warnings.
3b2d6325c81823e65feb6bf0c1fb61cc272485fb David Trowbridge
djblets/extensions/manager.py
djblets/webapi/auth/backends/api_tokens.py
djblets/webapi/auth/backends/oauth2_tokens.py
Loading...