Update use of is_authenticated and is_anonymous.

Review Request #11924 — Created Jan. 11, 2022 and submitted — Latest diff uploaded

Information

Review Board
release-4.0.x

Reviewers

Django has changed User.is_authenticated and User.is_anonymous to be
attributes instead of methods. These are currently available with a
fallback, but that's going away in Django 2.0+. This change updates our
usage to use the new syntax.

Ran unit tests.

reviewboard/reviews/context.py
reviewboard/reviews/default_actions.py
reviewboard/reviews/detail.py
reviewboard/reviews/managers.py
reviewboard/reviews/markdown_utils.py
reviewboard/reviews/views.py
reviewboard/reviews/models/base_comment.py
reviewboard/reviews/models/group.py
reviewboard/reviews/models/review.py
reviewboard/reviews/models/review_request.py
reviewboard/reviews/models/status_update.py
reviewboard/reviews/templatetags/reviewtags.py
reviewboard/scmtools/managers.py
reviewboard/scmtools/models.py
reviewboard/search/forms.py
reviewboard/site/decorators.py
reviewboard/site/models.py
reviewboard/webapi/decorators.py
reviewboard/webapi/resources/oauth_app.py
reviewboard/webapi/resources/oauth_token.py
reviewboard/webapi/resources/session.py
reviewboard/webapi/resources/user_file_attachment.py
This diff has been split across 2 pages: < 1 2
Loading...