Add a method for returning reviews that are accessible by a given user to ReviewManager
Review Request #12302 — Created May 25, 2022 and submitted — Latest diff uploaded
Currently there is no efficient way to query for reviews that are
accessible by a given user when usingReviews.objects
. This change adds a
method toReviewManager
such thatReviews.objects.accessible(user)
returns a
queryset of reviews that are accessible by the given user.
- Created
test_review_manager.py
file and moved in theReviewManager
tests fromtest_review.py
. - Created tests for
Review.objects.accessible
and ran all tests in
test_review_manager.py
with success.