Jump to >

This documentation covers the in-development release of Review Board. You can see the latest stable docs or all previous versions.


class ProfileManager[source]

Bases: django.db.models.manager.Manager

Manager for user profiles.

get_or_create(user, *args, **kwargs)[source]

Return the profile for the user.

This will create the profile if one does not exist.

__slotnames__ = [][source]
class ReviewRequestVisitManager[source]

Bases: djblets.db.managers.ConcurrencyManager

Manager for review request visits.


Unarchive a review request for all users.

Unarchives the given review request for all users by changing all review request visit database entries for this review request from archived to visible.

Parameters:review_request (reviewboard.reviews.models.review_request.ReviewRequest) – The review request to unarchive.
update_visibility(review_request, user, new_visibility)[source]

Update the visibility of a review request.

This will set the review request as visible, archived, or muted for the given user.

  • review_request (reviewboard.reviews.models.review_request.ReviewRequest) – The review request to update the visibility of.
  • user (django.contrib.auth.models.User) – The current user.
  • new_visibility (unicode) – The new visibility to update the review request to. This will be one of VISIBLE, ARCHIVED, or MUTED.

The review request visit.

Return type:


__slotnames__ = [][source]
class TrophyManager[source]

Bases: django.db.models.manager.Manager

Manager for trophies.

Creates new trophies, updates the database and fetches trophies from the database.


Compute and return trophies for a review request.

Computes trophies for a given review request by looping through all registered trophy types and seeing if any apply to the review request.

If trophies are to be awarded, they are saved in the database and returned. If no trophies are to be awarded, an empty list is returned.


Get all the trophies for a given review request.

__slotnames__ = [][source]