• Get Review Board
  • What's New
  • Products
  • Review Board Code review, image review, and document review
  • Documentation
  • Release Notes
  • Power Pack Enterprise integrations, reports, and enhanced document review
  • Try for 60 Days
  • Purchase
  • RBCommons Review Board as a Service, hosted by us
  • Pricing
  • RBTools Command line tools and Python API for Review Board
  • Documentation
  • Release Notes
  • Review Bot Automated code review, connecting tools you already use
  • Documentation
  • Release Notes
  • RB Gateway Manage Git and Mercurial repositories in your network
  • Documentation
  • Release Notes
  • Learn and Explore
  • What is Code Review?
  • Documentation
  • Frequently Asked Questions
  • Support Options
  • Third-Party Integrations
  • Demo
  • Review Board RBTools Power Pack Review Bot Djblets RB Gateway
    1. Review Board dev
    2. Version 7.x
    3. Version 6.x
    4. Version 5.0
    5. Version 4.0
    6. Version 3.0
    7. Version 2.5
    8. Version 2.0
    9. Version 1.7
    10. Version 1.6
    11. Version 1.5
    12. Version 1.0
    13. Extending Review Board
    14. Module and Class References
    15. reviewboard.accounts.models
  • Home
  • Users Guide
  • Getting Started
  • Introduction
  • What is Code Review?
  • Review Board Workflows
  • Account Settings
  • Dashboard
  • Working with Review Requests
  • Overview
  • Creating Review Requests
  • Editing Fields
  • Uploading Diffs
  • Uploading File Attachments
  • Publishing Review Requests
  • Closing Review Requests
  • Reviewing
  • Reviews and Comments
  • The Review Banner
  • Managing and Publishing Drafts
  • Issue Tracking
  • Reviewing Code (Diffs)
  • Reviewing File Attachments
  • Reviewing Images
  • Reviewing Markdown Files
  • Reviewing Text Files
  • Creating and Editing Reviews
  • Approving Changes (Ship It!)
  • Replying to Comments
  • Automated Code Reviews
  • Searching
  • Quick Search
  • Full-Text Search
  • Using Markdown
  • Administration Guide
  • Installation
  • Installing Review Board
  • Linux System Compatibility
  • Installing with Docker
  • Manually Installing on Linux
  • Installing on macOS
  • Installing on Windows
  • Installing Development Releases
  • Creating a Review Board Site
  • Upgrading
  • Upgrading Review Board
  • Upgrading Review Board Sites
  • Optimization
  • Optimizing and Scaling Review Board
  • Administration UI
  • Overview of the Administration UI
  • Administrator Dashboard
  • Database Management
  • Configuration
  • Site Settings
  • General Settings
  • Authentication Settings
  • Avatar Services Settings
  • E-Mail Settings
  • Diff Viewer Settings
  • Logging Settings
  • SSH Settings
  • File Storage Settings
  • User Privacy Settings
  • Search Settings
  • Access Control
  • Working with E-Mail
  • Default Reviewers
  • Permission Groups
  • Repositories
  • Azure DevOps Server / Team Foundation Server Repositories
  • Bazaar Repositories
  • CVS Repositories
  • Git Repositories
  • HCL ClearCase and IBM ClearCase
  • Mercurial Repositories
  • Perforce Repositories
  • Subversion Repositories
  • Assembla Repositories
  • AWS CodeCommit Repositories
  • Azure DevOps Services Repositories
  • Beanstalk Repositories
  • Bitbucket Repositories
  • Bitbucket Data Center Repositories
  • Codebase HQ Repositories
  • Fedora Hosted Repositories
  • Gerrit Repositories
  • GitHub Repositories
  • GitHub Enterprise Repositories
  • GitLab Repositories
  • Gitorious Repositories
  • Keysight SOS Repositories
  • SourceForge Repositories
  • Unfuddle STACK Repositories
  • Review Groups
  • Users
  • WebHooks
  • Extensions
  • Integrations
  • Asana Integration
  • CircleCI Integration
  • Discord Integration
  • GitLab CI/CD Integration
  • I Done This Integration
  • Jenkins CI Integration
  • Matrix Integration
  • Mattermost Integration
  • Microsoft Teams Integration
  • Slack Integration
  • Travis CI Integration
  • Trello Integration
  • Site Maintenance
  • The rb-site Tool
  • Advanced Management Commands
  • Monitoring Review Board
  • Health Checks
  • Web API Guide
  • Resource Tree
  • Resources
  • Root List Resource
  • Default Reviewer List Resource
  • Default Reviewer Resource
  • Extension List Resource
  • Extension Resource
  • Hosting Service Account List Resource
  • Hosting Service Account Resource
  • Remote Repository List Resource
  • Hosting Service List Resource
  • Hosting Service Resource
  • OAuth2 Applications List Resource
  • OAuth2 Applications Resource
  • OAuth2 Tokens List Resource
  • OAuth2 Tokens Resource
  • Repository List Resource
  • Repository Resource
  • Diff File Attachment List Resource
  • Repository Branches Resource
  • Repository Commits Resource
  • Repository Group List Resource
  • Repository Info Resource
  • Repository User List Resource
  • Review Group List Resource
  • Review Group Resource
  • Review Group User List Resource
  • Review Request List Resource
  • Review Request Resource
  • Change List Resource
  • Diff Context Resource
  • Diff List Resource
  • File Attachment List Resource
  • Review List Resource
  • Review Request Draft Resource
  • Review Request Last Update Resource
  • Screenshot List Resource
  • Status Update List Resource
  • Root Diff Comment List Resource
  • Root File Attachment Comment List Resource
  • Root General Comment List Resource
  • Root Review List Resource
  • Search Resource
  • Server Info Resource
  • Session Resource
  • User List Resource
  • User Resource
  • API Token List Resource
  • Archived Review Request List Resource
  • Muted Review Request List Resource
  • User File Attachment List Resource
  • Watched List Resource
  • Validation List Resource
  • Validate Diff List Resource
  • Validate Diff Commit List Resource
  • WebHook List Resource
  • WebHook Resource
  • Server Info Resource
  • Default Reviewer List Resource
  • Default Reviewer Resource
  • Default Reviewer Resource
  • Diff Context Resource
  • Diff List Resource
  • Diff Resource
  • Diff Commit List Resource
  • Diff Commit Resource
  • File Diff List Resource
  • File Diff Resource
  • Diff Resource
  • Diff Commit List Resource
  • Diff Commit Resource
  • File Diff List Resource
  • File Diff Resource
  • File Diff Comment List Resource
  • Original File Resource
  • Patched File Resource
  • Diff Commit List Resource
  • Diff Commit Resource
  • Diff Commit Resource
  • Diff File Attachment List Resource
  • Diff File Attachment Resource
  • Diff File Attachment Resource
  • Original File Resource
  • Patched File Resource
  • Extension List Resource
  • Extension Resource
  • Extension Resource
  • Hosting Service List Resource
  • Hosting Service Resource
  • Hosting Service Resource
  • Hosting Service Account List Resource
  • Hosting Service Account Resource
  • Remote Repository List Resource
  • Remote Repository Resource
  • Hosting Service Account Resource
  • Remote Repository List Resource
  • Remote Repository Resource
  • Remote Repository List Resource
  • Remote Repository Resource
  • Remote Repository Resource
  • OAuth2 Applications List Resource
  • OAuth2 Applications Resource
  • OAuth2 Applications Resource
  • OAuth2 Tokens List Resource
  • OAuth2 Tokens Resource
  • OAuth2 Tokens Resource
  • Repository List Resource
  • Repository Resource
  • Diff File Attachment List Resource
  • Diff File Attachment Resource
  • Repository Branches Resource
  • Repository Commits Resource
  • Repository Group List Resource
  • Repository Group Resource
  • Repository Info Resource
  • Repository User List Resource
  • Repository User Resource
  • Repository Resource
  • Diff File Attachment List Resource
  • Diff File Attachment Resource
  • Repository Branches Resource
  • Repository Commits Resource
  • Repository Group List Resource
  • Repository Group Resource
  • Repository Info Resource
  • Repository User List Resource
  • Repository User Resource
  • Repository Branches Resource
  • Repository Commits Resource
  • Repository Group List Resource
  • Repository Group Resource
  • Repository Group Resource
  • Repository Info Resource
  • Repository User List Resource
  • Repository User Resource
  • Repository User Resource
  • Review Group List Resource
  • Review Group Resource
  • Review Group User List Resource
  • Review Group User Resource
  • Review Group Resource
  • Review Group User List Resource
  • Review Group User Resource
  • Review Group User List Resource
  • Review Group User Resource
  • Review Group User Resource
  • Change List Resource
  • Change Resource
  • Change Resource
  • File Attachment List Resource
  • File Attachment Resource
  • File Attachment Comment List Resource
  • File Attachment Resource
  • File Attachment Comment List Resource
  • File Attachment Comment List Resource
  • File Diff List Resource
  • File Diff Resource
  • File Diff Comment List Resource
  • Original File Resource
  • Patched File Resource
  • File Diff Resource
  • File Diff Comment List Resource
  • Original File Resource
  • Patched File Resource
  • File Diff Comment List Resource
  • Review Request List Resource
  • Review Request Resource
  • Change List Resource
  • Change Resource
  • Diff Context Resource
  • Diff List Resource
  • Diff Resource
  • File Attachment List Resource
  • File Attachment Resource
  • Review List Resource
  • Review Resource
  • Review Draft Resource
  • Review Request Draft Resource
  • Draft Diff List Resource
  • Draft File Attachment List Resource
  • Draft Screenshot List Resource
  • Review Request Last Update Resource
  • Screenshot List Resource
  • Screenshot Resource
  • Status Update List Resource
  • Status Update Resource
  • Review Request Resource
  • Change List Resource
  • Change Resource
  • Diff Context Resource
  • Diff List Resource
  • Diff Resource
  • Diff Commit List Resource
  • File Diff List Resource
  • File Attachment List Resource
  • File Attachment Resource
  • File Attachment Comment List Resource
  • Review List Resource
  • Review Resource
  • Review Diff Comment List Resource
  • Review File Attachment Comment List Resource
  • Review General Comment List Resource
  • Review Reply List Resource
  • Review Screenshot Comment List Resource
  • Review Draft Resource
  • Review Request Draft Resource
  • Draft Diff List Resource
  • Draft Diff Resource
  • Draft File Attachment List Resource
  • Draft File Attachment Resource
  • Draft Screenshot List Resource
  • Draft Screenshot Resource
  • Review Request Last Update Resource
  • Screenshot List Resource
  • Screenshot Resource
  • Screenshot Comment List Resource
  • Status Update List Resource
  • Status Update Resource
  • Review Request Last Update Resource
  • Screenshot List Resource
  • Screenshot Resource
  • Screenshot Comment List Resource
  • Screenshot Resource
  • Screenshot Comment List Resource
  • Screenshot Comment List Resource
  • Draft Diff List Resource
  • Draft Diff Resource
  • Draft Diff Commit List Resource
  • Draft Diff Commit Resource
  • Draft File Diff List Resource
  • Draft File Diff Resource
  • Draft Diff Resource
  • Draft Diff Commit List Resource
  • Draft Diff Commit Resource
  • Draft File Diff List Resource
  • Draft File Diff Resource
  • Draft Original File Resource
  • Draft Patched File Resource
  • Draft Diff Commit List Resource
  • Draft Diff Commit Resource
  • Draft Diff Commit Resource
  • Draft File Diff List Resource
  • Draft File Diff Resource
  • Draft Original File Resource
  • Draft Patched File Resource
  • Draft File Diff Resource
  • Draft Original File Resource
  • Draft Patched File Resource
  • Draft File Attachment List Resource
  • Draft File Attachment Resource
  • Draft File Attachment Resource
  • Draft Original File Resource
  • Draft Patched File Resource
  • Draft Screenshot List Resource
  • Draft Screenshot Resource
  • Draft Screenshot Resource
  • Review Request Draft Resource
  • Draft Diff List Resource
  • Draft Diff Resource
  • Draft Diff Commit List Resource
  • Draft File Diff List Resource
  • Draft File Attachment List Resource
  • Draft File Attachment Resource
  • Draft Screenshot List Resource
  • Draft Screenshot Resource
  • Root Review List Resource
  • Root Diff Comment List Resource
  • Root File Attachment Comment List Resource
  • Root General Comment List Resource
  • Review List Resource
  • Review Resource
  • Review Diff Comment List Resource
  • Review Diff Comment Resource
  • Review File Attachment Comment List Resource
  • Review File Attachment Comment Resource
  • Review General Comment List Resource
  • Review General Comment Resource
  • Review Reply List Resource
  • Review Reply Resource
  • Review Reply Draft Resource
  • Review Screenshot Comment List Resource
  • Review Screenshot Comment Resource
  • Review Draft Resource
  • Review Resource
  • Review Diff Comment List Resource
  • Review Diff Comment Resource
  • Review File Attachment Comment List Resource
  • Review File Attachment Comment Resource
  • Review General Comment List Resource
  • Review General Comment Resource
  • Review Reply List Resource
  • Review Reply Resource
  • Review Reply Diff Comment List Resource
  • Review Reply File Attachment Comment List Resource
  • Review Reply General Comment List Resource
  • Review Reply Screenshot Comment List Resource
  • Review Reply Draft Resource
  • Review Screenshot Comment List Resource
  • Review Screenshot Comment Resource
  • Review Draft Resource
  • Review Diff Comment List Resource
  • Review Diff Comment Resource
  • Review Diff Comment Resource
  • Review File Attachment Comment List Resource
  • Review File Attachment Comment Resource
  • Review File Attachment Comment Resource
  • Review General Comment List Resource
  • Review General Comment Resource
  • Review General Comment Resource
  • Review Screenshot Comment List Resource
  • Review Screenshot Comment Resource
  • Review Screenshot Comment Resource
  • Review Reply Draft Resource
  • Review Reply List Resource
  • Review Reply Resource
  • Review Reply Diff Comment List Resource
  • Review Reply Diff Comment Resource
  • Review Reply File Attachment Comment List Resource
  • Review Reply File Attachment Comment Resource
  • Review Reply General Comment List Resource
  • Review Reply General Comment Resource
  • Review Reply Screenshot Comment List Resource
  • Review Reply Screenshot Comment Resource
  • Review Reply Draft Resource
  • Review Reply Resource
  • Review Reply Diff Comment List Resource
  • Review Reply Diff Comment Resource
  • Review Reply File Attachment Comment List Resource
  • Review Reply File Attachment Comment Resource
  • Review Reply General Comment List Resource
  • Review Reply General Comment Resource
  • Review Reply Screenshot Comment List Resource
  • Review Reply Screenshot Comment Resource
  • Review Reply Diff Comment List Resource
  • Review Reply Diff Comment Resource
  • Review Reply Diff Comment Resource
  • Review Reply File Attachment Comment List Resource
  • Review Reply File Attachment Comment Resource
  • Review Reply File Attachment Comment Resource
  • Review Reply General Comment List Resource
  • Review Reply General Comment Resource
  • Review Reply General Comment Resource
  • Review Reply Screenshot Comment List Resource
  • Review Reply Screenshot Comment Resource
  • Review Reply Screenshot Comment Resource
  • Search Resource
  • Status Update List Resource
  • Status Update Resource
  • Status Update Resource
  • API Token List Resource
  • API Token Resource
  • API Token Resource
  • Archived Review Request List Resource
  • Archived Review Request Resource
  • Archived Review Request Resource
  • Muted Review Request List Resource
  • Muted Review Request Resource
  • Muted Review Request Resource
  • Session Resource
  • User List Resource
  • User Resource
  • API Token List Resource
  • API Token Resource
  • Archived Review Request List Resource
  • Archived Review Request Resource
  • Muted Review Request List Resource
  • Muted Review Request Resource
  • User File Attachment List Resource
  • User File Attachment Resource
  • Watched List Resource
  • Watched Review Group List Resource
  • Watched Review Request List Resource
  • User Resource
  • API Token List Resource
  • API Token Resource
  • Archived Review Request List Resource
  • Archived Review Request Resource
  • Muted Review Request List Resource
  • Muted Review Request Resource
  • User File Attachment List Resource
  • User File Attachment Resource
  • Watched List Resource
  • Watched Review Group List Resource
  • Watched Review Group Resource
  • Watched Review Request List Resource
  • Watched Review Request Resource
  • User File Attachment List Resource
  • User File Attachment Resource
  • User File Attachment Resource
  • Watched Review Group List Resource
  • Watched Review Group Resource
  • Watched Review Group Resource
  • Watched Review Request List Resource
  • Watched Review Request Resource
  • Watched Review Request Resource
  • Watched List Resource
  • Watched Review Group List Resource
  • Watched Review Group Resource
  • Watched Review Request List Resource
  • Watched Review Request Resource
  • Validation List Resource
  • Validate Diff List Resource
  • Validate Diff Commit List Resource
  • Validate Diff List Resource
  • Validate Diff Commit List Resource
  • WebHook List Resource
  • WebHook Resource
  • WebHook Resource
  • Errors
  • 100 - Does Not Exist
  • 101 - Permission Denied
  • 102 - Invalid Attribute
  • 103 - Not Logged In
  • 104 - Login Failed
  • 105 - Invalid Form Data
  • 106 - Missing Attribute
  • 107 - Enable Extension Failed
  • 108 - Disable Extension Failed
  • 109 - Extension Already Installed
  • 110 - Install Extension Failed
  • 111 - Duplicate Item
  • 112 - OAuth2 Missing Scope Error
  • 113 - OAuth2 Access Denied Error
  • 114 - Rate Limit Exceeded
  • 203 - Invalid Change Number
  • 204 - Change Number In Use
  • 205 - Missing Repository
  • 206 - Invalid Repository
  • 207 - Repository File Not Found
  • 208 - Invalid User
  • 209 - Repository Action Not Supported
  • 210 - Repository Information Error
  • 212 - Empty Changeset
  • 213 - Server Configuration Error
  • 214 - Bad Host Key
  • 215 - Unverified Host Key
  • 216 - Unverified Host Certificate
  • 217 - Missing User Key
  • 218 - Repository Authentication Error
  • 219 - Diff Empty
  • 220 - Diff Too Big
  • 221 - File Retrieval Error
  • 222 - Hosting Service Authentication Error
  • 223 - Group Already Exists
  • 224 - Diff Parse Error
  • 225 - Publish Error
  • 226 - User Query Error
  • 227 - Commit ID Already Exists
  • 228 - Token Generation Failed
  • 230 - Could not close review request
  • 231 - Could not reopen review request
  • 232 - Ship-It Revocation Error
  • REST API 2.0
  • Overview
  • Authenticating
  • API Token Policies
  • OAuth2 Authentication
  • Rich Text Fields and Types
  • Storing/Accessing Extra Data
  • Resources
  • Root List Resource
  • Default Reviewer List Resource
  • Default Reviewer Resource
  • Extension List Resource
  • Extension Resource
  • Hosting Service Account List Resource
  • Hosting Service Account Resource
  • Hosting Service List Resource
  • Hosting Service Resource
  • OAuth2 Applications List Resource
  • OAuth2 Applications Resource
  • OAuth2 Tokens List Resource
  • OAuth2 Tokens Resource
  • Repository List Resource
  • Repository Resource
  • Review Group List Resource
  • Review Group Resource
  • Review Request List Resource
  • Review Request Resource
  • Root Diff Comment List Resource
  • Root File Attachment Comment List Resource
  • Root General Comment List Resource
  • Root Review List Resource
  • Search Resource
  • Server Info Resource
  • Session Resource
  • User List Resource
  • User Resource
  • Validation List Resource
  • Validate Diff List Resource
  • Validate Diff Commit List Resource
  • WebHook List Resource
  • WebHook Resource
  • Server Info Resource
  • Default Reviewer List Resource
  • Default Reviewer Resource
  • Default Reviewer Resource
  • Diff Context Resource
  • Diff List Resource
  • Diff Resource
  • Diff Commit List Resource
  • File Diff List Resource
  • Diff Resource
  • Diff Commit List Resource
  • Diff Commit Resource
  • File Diff List Resource
  • File Diff Resource
  • Diff Commit List Resource
  • Diff Commit Resource
  • Diff Commit Resource
  • Diff File Attachment List Resource
  • Diff File Attachment Resource
  • Diff File Attachment Resource
  • Original File Resource
  • Patched File Resource
  • Extension List Resource
  • Extension Resource
  • Extension Resource
  • Hosting Service List Resource
  • Hosting Service Resource
  • Hosting Service Resource
  • Hosting Service Account List Resource
  • Hosting Service Account Resource
  • Remote Repository List Resource
  • Hosting Service Account Resource
  • Remote Repository List Resource
  • Remote Repository Resource
  • Remote Repository List Resource
  • Remote Repository Resource
  • Remote Repository Resource
  • OAuth2 Applications List Resource
  • OAuth2 Applications Resource
  • OAuth2 Applications Resource
  • OAuth2 Tokens List Resource
  • OAuth2 Tokens Resource
  • OAuth2 Tokens Resource
  • Repository List Resource
  • Repository Resource
  • Diff File Attachment List Resource
  • Repository Branches Resource
  • Repository Commits Resource
  • Repository Group List Resource
  • Repository Info Resource
  • Repository User List Resource
  • Repository Resource
  • Diff File Attachment List Resource
  • Diff File Attachment Resource
  • Repository Branches Resource
  • Repository Commits Resource
  • Repository Group List Resource
  • Repository Group Resource
  • Repository Info Resource
  • Repository User List Resource
  • Repository User Resource
  • Repository Branches Resource
  • Repository Commits Resource
  • Repository Group List Resource
  • Repository Group Resource
  • Repository Group Resource
  • Repository Info Resource
  • Repository User List Resource
  • Repository User Resource
  • Repository User Resource
  • Review Group List Resource
  • Review Group Resource
  • Review Group User List Resource
  • Review Group Resource
  • Review Group User List Resource
  • Review Group User Resource
  • Review Group User List Resource
  • Review Group User Resource
  • Review Group User Resource
  • Change List Resource
  • Change Resource
  • Change Resource
  • File Attachment List Resource
  • File Attachment Resource
  • File Attachment Comment List Resource
  • File Attachment Resource
  • File Attachment Comment List Resource
  • File Attachment Comment List Resource
  • File Diff List Resource
  • File Diff Resource
  • File Diff Comment List Resource
  • Original File Resource
  • Patched File Resource
  • File Diff Resource
  • File Diff Comment List Resource
  • Original File Resource
  • Patched File Resource
  • File Diff Comment List Resource
  • Review Request List Resource
  • Review Request Resource
  • Change List Resource
  • Diff Context Resource
  • Diff List Resource
  • File Attachment List Resource
  • Review List Resource
  • Review Request Draft Resource
  • Review Request Last Update Resource
  • Screenshot List Resource
  • Status Update List Resource
  • Review Request Resource
  • Change List Resource
  • Change Resource
  • Diff Context Resource
  • Diff List Resource
  • Diff Resource
  • File Attachment List Resource
  • File Attachment Resource
  • Review List Resource
  • Review Resource
  • Review Draft Resource
  • Review Request Draft Resource
  • Draft Diff List Resource
  • Draft File Attachment List Resource
  • Draft Screenshot List Resource
  • Review Request Last Update Resource
  • Screenshot List Resource
  • Screenshot Resource
  • Status Update List Resource
  • Status Update Resource
  • Review Request Last Update Resource
  • Screenshot List Resource
  • Screenshot Resource
  • Screenshot Comment List Resource
  • Screenshot Resource
  • Screenshot Comment List Resource
  • Screenshot Comment List Resource
  • Draft Diff List Resource
  • Draft Diff Resource
  • Draft Diff Commit List Resource
  • Draft File Diff List Resource
  • Draft Diff Resource
  • Draft Diff Commit List Resource
  • Draft Diff Commit Resource
  • Draft File Diff List Resource
  • Draft File Diff Resource
  • Draft Diff Commit List Resource
  • Draft Diff Commit Resource
  • Draft Diff Commit Resource
  • Draft File Diff List Resource
  • Draft File Diff Resource
  • Draft Original File Resource
  • Draft Patched File Resource
  • Draft File Diff Resource
  • Draft Original File Resource
  • Draft Patched File Resource
  • Draft File Attachment List Resource
  • Draft File Attachment Resource
  • Draft File Attachment Resource
  • Draft Original File Resource
  • Draft Patched File Resource
  • Draft Screenshot List Resource
  • Draft Screenshot Resource
  • Draft Screenshot Resource
  • Review Request Draft Resource
  • Draft Diff List Resource
  • Draft Diff Resource
  • Draft File Attachment List Resource
  • Draft File Attachment Resource
  • Draft Screenshot List Resource
  • Draft Screenshot Resource
  • Root Review List Resource
  • Root Diff Comment List Resource
  • Root File Attachment Comment List Resource
  • Root General Comment List Resource
  • Review List Resource
  • Review Resource
  • Review Diff Comment List Resource
  • Review File Attachment Comment List Resource
  • Review General Comment List Resource
  • Review Reply List Resource
  • Review Screenshot Comment List Resource
  • Review Draft Resource
  • Review Resource
  • Review Diff Comment List Resource
  • Review Diff Comment Resource
  • Review File Attachment Comment List Resource
  • Review File Attachment Comment Resource
  • Review General Comment List Resource
  • Review General Comment Resource
  • Review Reply List Resource
  • Review Reply Resource
  • Review Reply Draft Resource
  • Review Screenshot Comment List Resource
  • Review Screenshot Comment Resource
  • Review Draft Resource
  • Review Diff Comment List Resource
  • Review Diff Comment Resource
  • Review Diff Comment Resource
  • Review File Attachment Comment List Resource
  • Review File Attachment Comment Resource
  • Review File Attachment Comment Resource
  • Review General Comment List Resource
  • Review General Comment Resource
  • Review General Comment Resource
  • Review Screenshot Comment List Resource
  • Review Screenshot Comment Resource
  • Review Screenshot Comment Resource
  • Review Reply Draft Resource
  • Review Reply List Resource
  • Review Reply Resource
  • Review Reply Diff Comment List Resource
  • Review Reply File Attachment Comment List Resource
  • Review Reply General Comment List Resource
  • Review Reply Screenshot Comment List Resource
  • Review Reply Draft Resource
  • Review Reply Resource
  • Review Reply Diff Comment List Resource
  • Review Reply Diff Comment Resource
  • Review Reply File Attachment Comment List Resource
  • Review Reply File Attachment Comment Resource
  • Review Reply General Comment List Resource
  • Review Reply General Comment Resource
  • Review Reply Screenshot Comment List Resource
  • Review Reply Screenshot Comment Resource
  • Review Reply Diff Comment List Resource
  • Review Reply Diff Comment Resource
  • Review Reply Diff Comment Resource
  • Review Reply File Attachment Comment List Resource
  • Review Reply File Attachment Comment Resource
  • Review Reply File Attachment Comment Resource
  • Review Reply General Comment List Resource
  • Review Reply General Comment Resource
  • Review Reply General Comment Resource
  • Review Reply Screenshot Comment List Resource
  • Review Reply Screenshot Comment Resource
  • Review Reply Screenshot Comment Resource
  • Search Resource
  • Status Update List Resource
  • Status Update Resource
  • Status Update Resource
  • API Token List Resource
  • API Token Resource
  • API Token Resource
  • Archived Review Request List Resource
  • Archived Review Request Resource
  • Archived Review Request Resource
  • Muted Review Request List Resource
  • Muted Review Request Resource
  • Muted Review Request Resource
  • Session Resource
  • User List Resource
  • User Resource
  • API Token List Resource
  • Archived Review Request List Resource
  • Muted Review Request List Resource
  • User File Attachment List Resource
  • Watched List Resource
  • User Resource
  • API Token List Resource
  • API Token Resource
  • Archived Review Request List Resource
  • Archived Review Request Resource
  • Muted Review Request List Resource
  • Muted Review Request Resource
  • User File Attachment List Resource
  • User File Attachment Resource
  • Watched List Resource
  • Watched Review Group List Resource
  • Watched Review Request List Resource
  • User File Attachment List Resource
  • User File Attachment Resource
  • User File Attachment Resource
  • Watched Review Group List Resource
  • Watched Review Group Resource
  • Watched Review Group Resource
  • Watched Review Request List Resource
  • Watched Review Request Resource
  • Watched Review Request Resource
  • Watched List Resource
  • Watched Review Group List Resource
  • Watched Review Group Resource
  • Watched Review Request List Resource
  • Watched Review Request Resource
  • Validation List Resource
  • Validate Diff List Resource
  • Validate Diff Commit List Resource
  • Validate Diff List Resource
  • Validate Diff Commit List Resource
  • WebHook List Resource
  • WebHook Resource
  • WebHook Resource
  • Errors
  • 100 - Does Not Exist
  • 101 - Permission Denied
  • 102 - Invalid Attribute
  • 103 - Not Logged In
  • 104 - Login Failed
  • 105 - Invalid Form Data
  • 106 - Missing Attribute
  • 107 - Enable Extension Failed
  • 108 - Disable Extension Failed
  • 109 - Extension Already Installed
  • 110 - Install Extension Failed
  • 111 - Duplicate Item
  • 112 - OAuth2 Missing Scope Error
  • 113 - OAuth2 Access Denied Error
  • 114 - Rate Limit Exceeded
  • 203 - Invalid Change Number
  • 204 - Change Number In Use
  • 205 - Missing Repository
  • 206 - Invalid Repository
  • 207 - Repository File Not Found
  • 208 - Invalid User
  • 209 - Repository Action Not Supported
  • 210 - Repository Information Error
  • 212 - Empty Changeset
  • 213 - Server Configuration Error
  • 214 - Bad Host Key
  • 215 - Unverified Host Key
  • 216 - Unverified Host Certificate
  • 217 - Missing User Key
  • 218 - Repository Authentication Error
  • 219 - Diff Empty
  • 220 - Diff Too Big
  • 221 - File Retrieval Error
  • 222 - Hosting Service Authentication Error
  • 223 - Group Already Exists
  • 224 - Diff Parse Error
  • 225 - Publish Error
  • 226 - User Query Error
  • 227 - Commit ID Already Exists
  • 228 - Token Generation Failed
  • 230 - Could not close review request
  • 231 - Could not reopen review request
  • 232 - Ship-It Revocation Error
  • Glossary
  • Extending Review Board
  • Extension Files and Package Layout
  • Creating an Extension Class
  • Adding a Configuration Form
  • Providing Database Models
  • Providing Static Media Files
  • Writing JavaScript Extensions
  • Writing Extension Unit Tests
  • Packaging and Distributing Extensions
  • Extension Hooks
  • AccountPageFormsHook
  • AccountPagesHook
  • ActionHook
  • AdminWidgetHook
  • APIExtraDataAccessHook
  • AuthBackendHook
  • AvatarServiceHook
  • CommentDetailDisplayHook
  • DashboardColumnsHook
  • DashboardSidebarItemsHook
  • DataGridColumnsHook
  • EmailHook
  • ReviewRequestPublishedEmailHook
  • ReviewRequestClosedEmailHook
  • ReviewPublishedEmailHook
  • ReviewReplyPublishedEmailHook
  • FileAttachmentThumbnailHook
  • FileDiffACLHook
  • HideActionHook
  • HostingServiceHook
  • IntegrationHook
  • NavigationBarHook
  • ReviewRequestApprovalHook
  • ReviewRequestConditionChoicesHook
  • ReviewRequestFieldsHook
  • ReviewRequestFieldSetsHook
  • ReviewUIHook
  • SCMToolHook
  • SignalHook
  • TemplateHook
  • URLHook
  • UserDetailsProviderHook
  • UserInfoboxHook
  • UserPageSidebarItemsHook
  • WebAPICapabilitiesHook
  • Writing Review Board Extensions
  • Making a Review Board Extension
  • The rbext Tool
  • Extension Hooks
  • AccountPageFormsHook
  • AccountPagesHook
  • ActionHook
  • AdminWidgetHook
  • APIExtraDataAccessHook
  • AuthBackendHook
  • AvatarServiceHook
  • CommentDetailDisplayHook
  • DashboardColumnsHook
  • DashboardSidebarItemsHook
  • DataGridColumnsHook
  • EmailHook
  • ReviewRequestPublishedEmailHook
  • ReviewRequestClosedEmailHook
  • ReviewPublishedEmailHook
  • ReviewReplyPublishedEmailHook
  • FileAttachmentThumbnailHook
  • FileDiffACLHook
  • HideActionHook
  • HostingServiceHook
  • IntegrationHook
  • NavigationBarHook
  • ReviewRequestApprovalHook
  • ReviewRequestConditionChoicesHook
  • ReviewRequestFieldsHook
  • ReviewRequestFieldSetsHook
  • ReviewUIHook
  • SCMToolHook
  • SignalHook
  • TemplateHook
  • URLHook
  • UserDetailsProviderHook
  • UserInfoboxHook
  • UserPageSidebarItemsHook
  • WebAPICapabilitiesHook
  • JavaScript Extension Hooks
  • CommentDialogHook
  • FileAttachmentThumbnailContainerHook
  • ReviewDialogCommentHook
  • ReviewDialogHook
  • Adding Review Request Fields
  • Adding UIs for New File Types (Review UIs)
  • Writing Authentication Backends
  • Writing Legacy Authentication Backends
  • Extending the Web API
  • Module and Class References
  • reviewboard
  • reviewboard.deprecation
  • reviewboard.rb_platform
  • reviewboard.signals
  • reviewboard.accounts.backends
  • reviewboard.accounts.backends.ad
  • reviewboard.accounts.backends.base
  • reviewboard.accounts.backends.http_digest
  • reviewboard.accounts.backends.ldap
  • reviewboard.accounts.backends.nis
  • reviewboard.accounts.backends.registry
  • reviewboard.accounts.backends.standard
  • reviewboard.accounts.backends.x509
  • reviewboard.accounts.decorators
  • reviewboard.accounts.errors
  • reviewboard.accounts.forms.auth
  • reviewboard.accounts.forms.pages
  • reviewboard.accounts.forms.registration
  • reviewboard.accounts.managers
  • reviewboard.accounts.middleware
  • reviewboard.accounts.mixins
  • reviewboard.accounts.models
  • reviewboard.accounts.pages
  • reviewboard.accounts.privacy
  • reviewboard.accounts.templatetags.accounts
  • reviewboard.accounts.testing
  • reviewboard.accounts.testing.queries
  • reviewboard.accounts.trophies
  • reviewboard.accounts.user_details
  • reviewboard.actions
  • reviewboard.actions.base
  • reviewboard.actions.errors
  • reviewboard.actions.registry
  • reviewboard.actions.renderers
  • reviewboard.admin
  • reviewboard.admin.actions
  • reviewboard.admin.admin_sites
  • reviewboard.admin.cache_stats
  • reviewboard.admin.checks
  • reviewboard.admin.decorators
  • reviewboard.admin.form_widgets
  • reviewboard.admin.middleware
  • reviewboard.admin.model_admin
  • reviewboard.admin.security_checks
  • reviewboard.admin.server
  • reviewboard.admin.siteconfig
  • reviewboard.admin.support
  • reviewboard.admin.validation
  • reviewboard.admin.widgets
  • reviewboard.attachments.errors
  • reviewboard.attachments.forms
  • reviewboard.attachments.managers
  • reviewboard.attachments.mimetypes
  • reviewboard.attachments.models
  • reviewboard.avatars.registry
  • reviewboard.avatars.services
  • reviewboard.avatars.settings
  • reviewboard.avatars.templatetags.avatars
  • reviewboard.avatars.testcase
  • reviewboard.changedescs.models
  • reviewboard.datagrids.columns
  • reviewboard.datagrids.grids
  • reviewboard.datagrids.sidebar
  • reviewboard.diffviewer.chunk_generator
  • reviewboard.diffviewer.differ
  • reviewboard.diffviewer.diffutils
  • reviewboard.diffviewer.errors
  • reviewboard.diffviewer.forms
  • reviewboard.diffviewer.managers
  • reviewboard.diffviewer.models
  • reviewboard.diffviewer.models.diffcommit
  • reviewboard.diffviewer.models.diffset
  • reviewboard.diffviewer.models.diffset_history
  • reviewboard.diffviewer.models.filediff
  • reviewboard.diffviewer.models.legacy_file_diff_data
  • reviewboard.diffviewer.models.raw_file_diff_data
  • reviewboard.diffviewer.myersdiff
  • reviewboard.diffviewer.opcode_generator
  • reviewboard.diffviewer.parser
  • reviewboard.diffviewer.processors
  • reviewboard.diffviewer.renderers
  • reviewboard.diffviewer.smdiff
  • reviewboard.certs
  • reviewboard.certs.cert
  • reviewboard.certs.errors
  • reviewboard.extensions.base
  • reviewboard.extensions.hooks
  • reviewboard.extensions.packaging
  • reviewboard.extensions.packaging.backend
  • reviewboard.extensions.packaging.setuptools_backend
  • reviewboard.extensions.packaging.static_media
  • reviewboard.extensions.testing
  • reviewboard.extensions.testing.testcases
  • reviewboard.hostingsvcs.base
  • reviewboard.hostingsvcs.base.bug_tracker
  • reviewboard.hostingsvcs.base.client
  • reviewboard.hostingsvcs.base.forms
  • reviewboard.hostingsvcs.base.hosting_service
  • reviewboard.hostingsvcs.base.http
  • reviewboard.hostingsvcs.base.paginator
  • reviewboard.hostingsvcs.base.registry
  • reviewboard.hostingsvcs.base.repository
  • reviewboard.hostingsvcs.errors
  • reviewboard.hostingsvcs.forms
  • reviewboard.hostingsvcs.hook_utils
  • reviewboard.hostingsvcs.models
  • reviewboard.hostingsvcs.repository
  • reviewboard.hostingsvcs.service
  • reviewboard.hostingsvcs.testing
  • reviewboard.hostingsvcs.testing.testcases
  • reviewboard.hostingsvcs.utils.paginator
  • reviewboard.integrations
  • reviewboard.integrations.base
  • reviewboard.integrations.forms
  • reviewboard.integrations.models
  • reviewboard.integrations.urls
  • reviewboard.integrations.views
  • reviewboard.licensing
  • reviewboard.licensing.actions
  • reviewboard.licensing.errors
  • reviewboard.licensing.features
  • reviewboard.licensing.license
  • reviewboard.licensing.license_checks
  • reviewboard.licensing.provider
  • reviewboard.licensing.registry
  • reviewboard.licensing.views
  • reviewboard.notifications
  • reviewboard.notifications.email
  • reviewboard.notifications.email.backend
  • reviewboard.notifications.email.decorators
  • reviewboard.notifications.email.hooks
  • reviewboard.notifications.email.message
  • reviewboard.notifications.email.utils
  • reviewboard.notifications.email.views
  • reviewboard.notifications.forms
  • reviewboard.notifications.managers
  • reviewboard.notifications.models
  • reviewboard.notifications.webhooks
  • reviewboard.reviews.actions
  • reviewboard.reviews.builtin_fields
  • reviewboard.reviews.chunk_generators
  • reviewboard.reviews.conditions
  • reviewboard.reviews.context
  • reviewboard.reviews.default_actions
  • reviewboard.reviews.detail
  • reviewboard.reviews.errors
  • reviewboard.reviews.features
  • reviewboard.reviews.fields
  • reviewboard.reviews.forms
  • reviewboard.reviews.managers
  • reviewboard.reviews.markdown_utils
  • reviewboard.reviews.models
  • reviewboard.reviews.signals
  • reviewboard.reviews.templatetags.reviewtags
  • reviewboard.reviews.testing
  • reviewboard.reviews.testing.queries
  • reviewboard.reviews.testing.queries.review_groups
  • reviewboard.reviews.testing.queries.review_requests
  • reviewboard.reviews.testing.queries.reviews
  • reviewboard.reviews.ui.base
  • reviewboard.reviews.ui.image
  • reviewboard.reviews.ui.markdownui
  • reviewboard.reviews.ui.text
  • reviewboard.reviews.views.attachments
  • reviewboard.reviews.views.bug_trackers
  • reviewboard.reviews.views.diff_fragments
  • reviewboard.reviews.views.diffviewer
  • reviewboard.reviews.views.download_diff
  • reviewboard.reviews.views.email
  • reviewboard.reviews.views.mixins
  • reviewboard.reviews.views.new_review_request
  • reviewboard.reviews.views.review_request_detail
  • reviewboard.reviews.views.review_request_infobox
  • reviewboard.reviews.views.review_request_updates
  • reviewboard.reviews.views.root
  • reviewboard.scmtools.certs
  • reviewboard.scmtools.conditions
  • reviewboard.scmtools.core
  • reviewboard.scmtools.crypto_utils
  • reviewboard.scmtools.errors
  • reviewboard.scmtools.forms
  • reviewboard.scmtools.managers
  • reviewboard.scmtools.models
  • reviewboard.scmtools.signals
  • reviewboard.scmtools.testing
  • reviewboard.scmtools.testing.queries
  • reviewboard.scmtools.tests.testcases
  • reviewboard.search.fields
  • reviewboard.search.forms
  • reviewboard.search.indexes
  • reviewboard.search.search_backends.base
  • reviewboard.search.search_backends.elasticsearch
  • reviewboard.search.search_backends.registry
  • reviewboard.search.search_backends.whoosh
  • reviewboard.search.signal_processor
  • reviewboard.search.testing
  • reviewboard.site.conditions
  • reviewboard.site.context_processors
  • reviewboard.site.decorators
  • reviewboard.site.middleware
  • reviewboard.site.mixins
  • reviewboard.site.models
  • reviewboard.site.signals
  • reviewboard.site.templatetags.localsite
  • reviewboard.site.testing
  • reviewboard.site.testing.queries
  • reviewboard.site.urlresolvers
  • reviewboard.site.validation
  • reviewboard.ssh.client
  • reviewboard.ssh.errors
  • reviewboard.ssh.policy
  • reviewboard.ssh.storage
  • reviewboard.ssh.utils
  • reviewboard.testing.hosting_services
  • reviewboard.testing.queries
  • reviewboard.testing.queries.base
  • reviewboard.testing.queries.http
  • reviewboard.testing.scmtool
  • reviewboard.testing.testcase
  • reviewboard.themes
  • reviewboard.themes.context_processors
  • reviewboard.themes.ui
  • reviewboard.themes.ui.base
  • reviewboard.themes.ui.default
  • reviewboard.themes.ui.registry
  • reviewboard.webapi.auth_backends
  • reviewboard.webapi.base
  • reviewboard.webapi.decorators
  • reviewboard.webapi.errors
  • reviewboard.webapi.mixins
  • reviewboard.webapi.models
  • reviewboard.webapi.server_info
  • reviewboard.webapi.testing
  • reviewboard.webapi.testing.queries
  • reviewboard.webapi.tests.base
  • Frequently Asked Questions
  • General Index
  • Python Module Index
  • Release Notes
  • This documentation covers the in-development release of Review Board. You can see the stable Review Board documentation or all previous versions.

    reviewboard.accounts.models¶

    Models for user profiles and related objects.

    class AnonymousUser¶

    Bases: object

    id = None¶
    pk = None¶
    username = ''¶
    is_staff = False¶
    is_active = False¶
    is_superuser = False¶
    __str__()¶

    Return str(self).

    __eq__(other)¶

    Return self==value.

    __hash__()¶

    Return hash(self).

    __int__()¶
    save()¶
    delete()¶
    set_password(raw_password)¶
    check_password(raw_password)¶
    property groups¶
    property user_permissions¶
    get_user_permissions(obj=None)¶
    async aget_user_permissions(obj=None)¶
    get_group_permissions(obj=None)¶
    async aget_group_permissions(obj=None)¶
    get_all_permissions(obj=None)¶
    async aget_all_permissions(obj=None)¶
    has_perm(perm, obj=None)¶
    async ahas_perm(perm, obj=None)¶
    has_perms(perm_list, obj=None)¶
    async ahas_perms(perm_list, obj=None)¶
    has_module_perms(module)¶
    async ahas_module_perms(module)¶
    property is_anonymous¶
    property is_authenticated¶
    get_username()¶
    class LinkedAccount(*args, **kwargs)[source]¶

    Bases: Model

    A linked account on an external service.

    This can be used to associate user accounts on Review Board with accounts on external services. These services might be third parties that Review Board interacts with (such as hosting services), or alternative methods of authentication like OpenID or SAML.

    New in version 5.0.

    user[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Child.parent is a ForwardManyToOneDescriptor instance.

    service_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    service_user_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    service_data[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    extra_data[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    get_extra_data_json()¶
    get_service_data_json()¶
    id¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    objects = <django.db.models.manager.Manager object>¶
    set_extra_data_json(json)¶
    set_service_data_json(json)¶
    user_id¶
    class LocalSiteProfile(*args, **kwargs)[source]¶

    Bases: Model

    User profile information specific to a LocalSite.

    user[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Child.parent is a ForwardManyToOneDescriptor instance.

    profile[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Child.parent is a ForwardManyToOneDescriptor instance.

    local_site[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Child.parent is a ForwardManyToOneDescriptor instance.

    permissions[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    direct_incoming_request_count = <djblets.db.fields.counter_field.CounterField: direct_incoming_request_count>[source]¶
    total_incoming_request_count = <djblets.db.fields.counter_field.CounterField: total_incoming_request_count>[source]¶
    pending_outgoing_request_count = <djblets.db.fields.counter_field.CounterField: pending_outgoing_request_count>[source]¶
    total_outgoing_request_count = <djblets.db.fields.counter_field.CounterField: total_outgoing_request_count>[source]¶
    starred_public_request_count = <djblets.db.fields.counter_field.CounterField: starred_public_request_count>[source]¶
    objects: ClassVar[LocalSiteProfileManager] = <reviewboard.accounts.managers.LocalSiteProfileManager object>¶
    __str__()[source]¶

    Return a string used for the admin site listing.

    decrement_direct_incoming_request_count(*args, **kwargs)¶
    decrement_pending_outgoing_request_count(*args, **kwargs)¶
    decrement_starred_public_request_count(*args, **kwargs)¶
    decrement_total_incoming_request_count(*args, **kwargs)¶
    decrement_total_outgoing_request_count(*args, **kwargs)¶
    get_permissions_json()¶
    id¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    increment_direct_incoming_request_count(*args, **kwargs)¶
    increment_pending_outgoing_request_count(*args, **kwargs)¶
    increment_starred_public_request_count(*args, **kwargs)¶
    increment_total_incoming_request_count(*args, **kwargs)¶
    increment_total_outgoing_request_count(*args, **kwargs)¶
    local_site_id¶
    profile_id¶
    reinit_direct_incoming_request_count()¶
    reinit_pending_outgoing_request_count()¶
    reinit_starred_public_request_count()¶
    reinit_total_incoming_request_count()¶
    reinit_total_outgoing_request_count()¶
    reload_direct_incoming_request_count()¶
    reload_pending_outgoing_request_count()¶
    reload_starred_public_request_count()¶
    reload_total_incoming_request_count()¶
    reload_total_outgoing_request_count()¶
    set_permissions_json(json)¶
    user_id¶
    class Profile(*args, **kwargs)[source]¶

    Bases: Model

    User profile which contains some basic configurable settings.

    user[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Child.parent is a ForwardManyToOneDescriptor instance.

    first_time_setup_done[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    should_send_email[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    should_send_own_updates[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    collapsed_diffs[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    wordwrapped_diffs[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    syntax_highlighting[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    is_private[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    open_an_issue[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    default_use_rich_text[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    show_closed[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    sort_review_request_columns[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    sort_dashboard_columns[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    sort_submitter_columns[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    sort_group_columns[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    review_request_columns[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    dashboard_columns[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    submitter_columns[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    group_columns[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    starred_review_requests[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    starred_groups[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    timezone[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    settings[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    extra_data[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    objects: ClassVar[ProfileManager] = <reviewboard.accounts.managers.ProfileManager object>¶
    __init__(*args, **kwargs) → None[source]¶

    Initialize the profile.

    Parameters:
    • *args (tuple) – Positional arguments to pass to the parent constructor.

    • **kwargs (dict) – Keyword arguments to pass to the parent constructor.

    star_cache: dict[tuple[type[StarrableObject], Any], bool]¶

    A local cache mapping starrable objects to explicit star states.

    When checking if an object is starred, this cache will be checked first. If an object is present, its state will take priority over anything in the database.

    property should_confirm_ship_it: bool[source]¶

    Whether to prompt to confirm publishing a Ship It! review.

    New in version 7.1.

    property should_use_rich_text[source]¶

    Get whether rich text should be used by default for this user.

    If the user has chosen whether or not to use rich text explicitly, then that choice will be respected. Otherwise, the system default is used.

    property should_enable_desktop_notifications[source]¶

    Return whether desktop notifications should be used for this user.

    If the user has chosen whether or not to use desktop notifications explicitly, then that choice will be respected. Otherwise, we enable desktop notifications by default.

    Changed in version 7.1: This property can now be changed.

    Type:

    bool – If the user has set whether they wish to receive desktop notifications, then use their preference. Otherwise, we return True.

    property quick_access_actions: Sequence[str][source]¶

    The IDs of the user’s enabled Quick Access actions.

    New in version 7.1.

    Type:

    list of str

    property ui_theme_id: str[source]¶

    Return the user’s preferred UI theme.

    New in version 7.0.

    Type:

    str

    get_starred_review_groups_count(*, local_site: ~typing.Union[~reviewboard.site.models.LocalSite, None, ~typing.Literal[<_LocalSiteConstants.ALL: '<ALL>'>], int] = None) → int[source]¶

    The number of starred review groups.

    This value is computed and stored in shared cache, to reduce lookups.

    New in version 5.0.

    Parameters:

    or (local_site (reviewboard.site.models.LocalSite) –

    reviewboard.site.models.LocalSite.ALL or

    int, optional):

    The Local Site associated with the starred review groups, or LocalSite.ALL to return counts across all sites.

    If not set, this will return a count for the global site.

    Returns:

    The starred review group count.

    Return type:

    int

    get_starred_review_requests_count(*, local_site: ~typing.Union[~reviewboard.site.models.LocalSite, None, ~typing.Literal[<_LocalSiteConstants.ALL: '<ALL>'>], int] = None) → int[source]¶

    The number of starred review requests.

    This value is computed and stored in shared cache, to reduce lookups.

    New in version 5.0.

    Parameters:

    or (local_site (reviewboard.site.models.LocalSite) –

    reviewboard.site.models.LocalSite.ALL or

    int, optional):

    The Local Site or ID associated with the starred review requests, or LocalSite.ALL to return counts across all sites.

    If not set, this will return a count for the global site.

    Returns:

    The starred review request count.

    Return type:

    int

    has_starred_review_groups(*, local_site: ~typing.Union[~reviewboard.site.models.LocalSite, None, ~typing.Literal[<_LocalSiteConstants.ALL: '<ALL>'>], int] = None) → bool[source]¶

    Whether the user has starred review groups.

    The result is based on a shared cache, to reduce lookups.

    New in version 5.0.

    Parameters:

    or (local_site (reviewboard.site.models.LocalSite) –

    reviewboard.site.models.LocalSite.ALL or

    int, optional):

    The Local Site or ID associated with the starred review groups, or LocalSite.ALL to return counts across all sites.

    If not set, this will return a count for the global site.

    Returns:

    True if the user has starred review groups. False if the user does not.

    Return type:

    bool

    has_starred_review_requests(*, local_site: ~typing.Union[~reviewboard.site.models.LocalSite, None, ~typing.Literal[<_LocalSiteConstants.ALL: '<ALL>'>], int] = None) → bool[source]¶

    Whether the user has starred review requests.

    The result is based on a shared cache, to reduce lookups.

    New in version 5.0.

    Parameters:

    or (local_site (reviewboard.site.models.LocalSite) –

    reviewboard.site.models.LocalSite.ALL or

    int, optional):

    The Local Site or ID associated with the starred review requests, or LocalSite.ALL to return counts across all sites.

    If not set, this will return a count for the global site.

    Returns:

    True if the user has starred review requests. False if the user does not.

    Return type:

    bool

    is_object_starred(obj: Union[Group, ReviewRequest]) → bool[source]¶

    Return whether a starrable object has been starred.

    This will look up in the local cache, if available. Otherwise it will fall back to querying the database.

    New in version 7.1.

    Parameters:

    obj (StarrableObject) – The object to check.

    Returns:

    True if the object is starred. False if it is not.

    Return type:

    bool

    Raises:

    ValueError – The provided object is not a starrable object.

    is_review_group_starred(review_group: Group) → bool[source]¶

    Return whether a review group has been starred.

    This will look up in the local cache, if available. Otherwise it will fall back to querying the database.

    New in version 5.0.

    Parameters:

    review_group (reviewboard.reviews.models.Group) – The review group to check.

    Returns:

    True if the review group has been starred. False if it has not.

    Return type:

    bool

    is_review_request_starred(review_request: ReviewRequest) → bool[source]¶

    Return whether a review request has been starred.

    This will look up in the local cache, if available. Otherwise it will fall back to querying the database.

    New in version 5.0.

    Parameters:

    review_request (reviewboard.reviews.models.ReviewRequest) – The review request to check.

    Returns:

    True if the review request has been starred. False if it has not.

    Return type:

    bool

    star_review_request(review_request: ReviewRequest) → None[source]¶

    Star a review request.

    This will mark a review request as starred for this user and immediately save to the database.

    Parameters:

    review_request (reviewboard.reviews.models.ReviewRequest) – The review request to star.

    unstar_review_request(review_request: ReviewRequest) → None[source]¶

    Unstar a review request.

    This will mark a review request as unstarred for this user and immediately save to the database.

    Parameters:

    review_request (reviewboard.reviews.models.ReviewRequest) – The review request to unstar.

    star_review_group(review_group: Group) → None[source]¶

    Star a review group.

    This will mark a review group as starred for this user and immediately save to the database.

    Parameters:

    review_group (reviewboard.reviews.models.Group) – The review group to star.

    unstar_review_group(review_group: Group) → None[source]¶

    Unstar a review group.

    This will mark a review group as unstarred for this user and immediately save to the database.

    Parameters:

    review_group (reviewboard.reviews.models.Group) – The review group to unstar.

    prefetch_starred_objects(model: type[Union[reviewboard.reviews.models.group.Group, reviewboard.reviews.models.review_request.ReviewRequest]], pks: Sequence[Any]) → None[source]¶

    Pre-fetch the starred status for one or more objects.

    This can speed up the lookup of the starred status for groups or review requests, and is recommended when working with bulk lists of these objects.

    New in version 7.1.

    Parameters:
    • model (type) – The type of starrable model.

    • pks (list) – The list of primary keys.

    prefetch_starred_review_groups(pks: Sequence[Any]) → None[source]¶

    Pre-fetch the starred status for one or more review group IDs.

    This can speed up the lookup of the starred status for groups, and is recommended when working with bulk lists of groups.

    New in version 7.1.

    Parameters:

    pks (list) –

    The list of review group primary keys.

    This is expected to be sanitized for ownership and any accessible Local Site.

    prefetch_starred_review_requests(pks: Sequence[Any]) → None[source]¶

    Pre-fetch the starred status for one or more review request IDs.

    This can speed up the lookup of the starred status for review requests, and is recommended when working with bulk lists of review requests.

    New in version 7.1.

    Parameters:

    pks (list) –

    The list of review request primary keys.

    This is expected to be sanitized for ownership and any accessible Local Site.

    __str__()[source]¶

    Return a string used for the admin site listing.

    property avatar_service[source]¶

    The avatar service the user has selected.

    Returns:

    The avatar service.

    Return type:

    djblets.avatars.services.base.AvatarService

    get_display_name(viewing_user)[source]¶

    Return the name to display to the given user.

    If any of the following is True and the user this profile belongs to has a full name set, the display name will be the the user’s full name:

    • The viewing user is authenticated and this profile is public.

    • The viewing user is the user this profile belongs to.

    • The viewing user is an administrator.

    • The viewing user is a LocalSite administrator on any LocalSite for which the user whose this profile belongs to is a user.

    Otherwise the display name will be the user’s username.

    Parameters:

    viewing_user (django.contrib.auth.models.User) – The user who is viewing the profile.

    Returns:

    The name to display.

    Return type:

    unicode

    save(*args, **kwargs)[source]¶

    Save the profile to the database.

    The profile will only be saved if the user is not affected by read-only mode.

    Parameters:
    • *args (tuple) – Positional arguments to pass through to the superclass.

    • **kwargs (dict) – Keyword arguments to pass through to the superclass.

    get_extra_data_json()¶
    get_settings_json()¶
    get_timezone_display(*, field=<django.db.models.fields.CharField: timezone>)¶
    id¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    set_extra_data_json(json)¶
    set_settings_json(json)¶
    site_profiles¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    user_id¶
    class ReviewRequestVisit(*args, **kwargs)[source]¶

    Bases: Model

    A recording of the last time a review request was visited by a user.

    Users have one ReviewRequestVisit entry in the database per review request they’ve visited. This is used to keep track of any updates to review requests they’ve already seen, so that we can intelligently inform them that new discussions have taken place.

    VISIBLE = 'V'[source]¶
    ARCHIVED = 'A'[source]¶
    MUTED = 'M'[source]¶
    VISIBILITY = (('V', 'Visible'), ('A', 'Archived'), ('M', 'Muted'))[source]¶
    user[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Child.parent is a ForwardManyToOneDescriptor instance.

    review_request[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Child.parent is a ForwardManyToOneDescriptor instance.

    timestamp[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    visibility[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    objects: ClassVar[ReviewRequestVisitManager] = <reviewboard.accounts.managers.ReviewRequestVisitManager object>¶
    __str__()[source]¶

    Return a string used for the admin site listing.

    get_next_by_timestamp(*, field=<django.db.models.fields.DateTimeField: timestamp>, is_next=True, **kwargs)¶
    get_previous_by_timestamp(*, field=<django.db.models.fields.DateTimeField: timestamp>, is_next=False, **kwargs)¶
    get_visibility_display(*, field=<django.db.models.fields.CharField: visibility>)¶
    id¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    review_request_id¶
    user_id¶
    class Trophy(*args, **kwargs)[source]¶

    Bases: Model

    A trophy represents an achievement given to the user.

    It is associated with a ReviewRequest and a User and can be associated with a LocalSite.

    category[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    received_date[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    review_request[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Child.parent is a ForwardManyToOneDescriptor instance.

    local_site[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Child.parent is a ForwardManyToOneDescriptor instance.

    user[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Child.parent is a ForwardManyToOneDescriptor instance.

    objects: ClassVar[TrophyManager] = <reviewboard.accounts.managers.TrophyManager object>¶
    trophy_type[source]¶

    The TrophyType instance for this trophy.

    get_display_text()[source]¶

    Get the display text for this trophy.

    get_next_by_received_date(*, field=<django.db.models.fields.DateTimeField: received_date>, is_next=True, **kwargs)¶
    get_previous_by_received_date(*, field=<django.db.models.fields.DateTimeField: received_date>, is_next=False, **kwargs)¶
    id¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    local_site_id¶
    review_request_id¶
    user_id¶
    class User(*args, **kwargs)¶

    Bases: AbstractUser

    Users within the Django authentication system are represented by this model.

    Username and password are required. Other fields are optional.

    application_set¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    changedescription_set¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    date_joined¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    default_review_paths¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    directed_drafts¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    directed_review_requests¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    draft¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    email¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    file_attachments¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    first_name¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    get_absolute_url()¶
    get_local_site_stats() → UserLocalSiteStats¶

    Return statistics on LocalSite membership for this user.

    New in version 5.0.

    Returns:

    A dictionary of statistics.

    Return type:

    UserLocalSiteStats

    get_next_by_date_joined(*, field=<django.db.models.fields.DateTimeField: date_joined>, is_next=True, **kwargs)¶
    get_previous_by_date_joined(*, field=<django.db.models.fields.DateTimeField: date_joined>, is_next=False, **kwargs)¶
    get_profile(cached_only: bool = False, create_if_missing: bool = True, return_is_new: bool = False) → Union[Optional[Profile], tuple[Optional[Profile], bool]]¶

    Return the profile for the User.

    The profile will be cached, preventing queries for future lookups.

    If a profile doesn’t exist in the database, and a cached-only copy isn’t being returned, then a profile will be created in the database.

    Changed in version 3.0.12: Added support for create_if_missing and return_is_new arguments.

    Parameters:
    • cached_only (bool, optional) –

      Whether we should only return the profile cached for the user.

      If True, this function will not retrieve an uncached profile or create one that doesn’t exist. Instead, it will return None.

    • create_if_missing (bool, optional) – Whether to create a site profile if one doesn’t already exist.

    • return_is_new (bool, optional) – If True, the result of the call will be a tuple containing the profile and a boolean indicating if the profile was newly-created.

    Returns:

    The user’s profile.

    If return_is_new is True, then this will instead return (Profile, is_new).

    Return type:

    Profile or tuple

    Raises:

    Profile.DoesNotExist – The profile did not exist. This can only be raised if passing create_if_missing=False.

    get_site_profile(local_site: Optional[LocalSite], cached_only: bool = False, create_if_missing: bool = True, return_is_new: bool = False) → Union[Optional[LocalSiteProfile], tuple[Optional[LocalSiteProfile], bool]]¶

    Return the LocalSiteProfile for a given LocalSite for the User.

    The site profile will be cached, preventing queries for future lookups.

    If a site profile doesn’t exist in the database, and a cached-only copy isn’t being returned, then a profile will be created in the database, unless passing create_if_missing=False.

    Changed in version 3.0.12:

    • In previous versions, this would not create a site profile if one didn’t already exist. Now it does, unless passing create_if_missing=False. This change was made to standardize behavior between this and User.get_profile().

    • Added support for cached_only, create_if_missing and return_is_new arguments.

    Parameters:
    • local_site (reviewboard.site.models.LocalSite) – The LocalSite to return a profile for. This is allowed to be None, which means the profile applies to their global site account.

    • cached_only (bool, optional) –

      Whether we should only return the profile cached for the user.

      If True, this function will not retrieve an uncached profile or create one that doesn’t exist. Instead, it will return None.

    • create_if_missing (bool, optional) – Whether to create a site profile if one doesn’t already exist.

    • return_is_new (bool, optional) – If True, the result of the call will be a tuple containing the profile and a boolean indicating if the profile was newly-created.

    Returns:

    The user’s LocalSite profile.

    If return_is_new is True, then this will instead return (LocalSiteProfile, is_new).

    Return type:

    LocalSiteProfile or tuple

    Raises:

    LocalSiteProfile.DoesNotExist – The profile did not exist. This can only be raised if passing create_if_missing=False.

    groups¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    has_private_profile() → bool¶

    Return whether the user’s profile is marked as private.

    New in version 5.0.

    Returns:

    Whether the user’s profile is marked as private.

    Return type:

    bool

    id¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    is_active¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    is_admin_for_user(user: Optional[Union[AnonymousUser, User]]) → bool¶

    Return whether this user is an administrator for the given user.

    Results will be cached for this user so that at most one query is done.

    Parameters:

    user (django.contrib.auth.models.User) – The user to check.

    Returns:

    Whether or not this user is an administrator for the given user.

    Return type:

    bool

    is_profile_visible(user: Optional[User] = None) → bool¶

    Return whether or not the given user can view this user’s profile.

    Profiles are hidden from unauthenticated users. For authenticated users, a profile is visible if one of the following is true:

    • The profile is not marked as private.

    • The viewing user owns the profile.

    • The viewing user is a staff member.

    • The viewing user is an administrator on a Local Site which the viewed user is a member.

    Parameters:

    user (django.contrib.auth.models.User, optional) – The user for which visibility to the profile is to be determined.

    Returns:

    Whether or not the given user can view the profile.

    Return type:

    bool

    is_staff¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    is_superuser¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    last_login¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    last_name¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    linked_accounts¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    local_site¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    local_site_admins¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    logentry_set¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    oauth2_provider_accesstoken¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    oauth2_provider_application¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    oauth2_provider_devicegrant¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    oauth2_provider_grant¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    oauth2_provider_idtoken¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    oauth2_provider_refreshtoken¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    oauth_application¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    password¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    profile_set¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    repositories¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    review_groups¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    review_request_visits¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    review_requests¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    reviews¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    should_send_email() → bool¶

    Return whether a user wants to receive e-mails.

    This is patched into the user object to make it easier to deal with missing Profile objects.

    Returns:

    True if the user wants to receive e-mails. False if they do not.

    Return type:

    bool

    should_send_own_updates() → bool¶

    Return whether a user wants to receive e-mails about their activity.

    This is patched into the user object to make it easier to deal with missing Profile objects.

    Returns:

    True if the user wants to receive e-mails about their own activity. False if they do not.

    Return type:

    bool

    site_profiles¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    status_updates¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    storedconsentdata¶

    Accessor to the related object on the reverse side of a one-to-one relation.

    In the example:

    class Restaurant(Model):
        place = OneToOneField(Place, related_name='restaurant')
    

    Place.restaurant is a ReverseOneToOneDescriptor instance.

    trophies¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    user_permissions¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    username¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    webapi_tokens¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    Parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    class UserLocalSiteStats[source]¶

    Bases: TypedDict

    Statistics about a user’s Local Site relationships.

    New in version 7.1.

    admined_local_site_ids: Sequence[int]¶

    The list of IDs of LocalSites for which the user is an administrator.

    local_site_ids: Sequence[int]¶

    The list of IDs of LocalSites for which the user is a member.

    This may or may not be a subset of admined_local_site_ids.

    state_uuid: str¶

    A UUID representing the current generation of statistics.

    This is suitable for use in other cache keys.

    This will be updated any time a new set of stats is created (i.e., when first generated, when invalidated, or when it expires from cache), even if the actual data does not change.

    __closed__ = None¶
    __extra_items__ = typing_extensions.NoExtraItems¶
    __mutable_keys__ = frozenset({'admined_local_site_ids', 'local_site_ids', 'state_uuid'})¶
    __optional_keys__ = frozenset({})¶
    __readonly_keys__ = frozenset({})¶
    __required_keys__ = frozenset({'admined_local_site_ids', 'local_site_ids', 'state_uuid'})¶
    __total__ = True¶

    Keep up with the latest Review Board releases, security updates, and helpful information.

    About
    News
    Demo
    RBCommons Hosting
    Integrations
    Happy Users
    Support Options
    Documentation
    FAQ
    User Manual
    RBTools
    Administration Guide
    Power Pack
    Release Notes
    Downloads
    Review Board
    RBTools
    Djblets
    Power Pack
    Package Store
    PGP Signatures
    Contributing
    Bug Tracker
    Submit Patches
    Development Setup
    Wiki
    Follow Us
    Mailing Lists
    Reddit
    Twitter
    Mastodon
    Facebook
    YouTube

    Copyright © 2006-2026 Beanbag, Inc. All rights reserved.

    Terms of Service — Privacy Policy — AI Ethics Policy — Branding

    On this page

    • [Top]
    • AnonymousUser
      • AnonymousUser.id
      • AnonymousUser.pk
      • AnonymousUser.username
      • AnonymousUser.is_staff
      • AnonymousUser.is_active
      • AnonymousUser.is_superuser
      • AnonymousUser.__str__()
      • AnonymousUser.__eq__()
      • AnonymousUser.__hash__()
      • AnonymousUser.__int__()
      • AnonymousUser.save()
      • AnonymousUser.delete()
      • AnonymousUser.set_password()
      • AnonymousUser.check_password()
      • AnonymousUser.groups
      • AnonymousUser.user_permissions
      • AnonymousUser.get_user_permissions()
      • AnonymousUser.aget_user_permissions()
      • AnonymousUser.get_group_permissions()
      • AnonymousUser.aget_group_permissions()
      • AnonymousUser.get_all_permissions()
      • AnonymousUser.aget_all_permissions()
      • AnonymousUser.has_perm()
      • AnonymousUser.ahas_perm()
      • AnonymousUser.has_perms()
      • AnonymousUser.ahas_perms()
      • AnonymousUser.has_module_perms()
      • AnonymousUser.ahas_module_perms()
      • AnonymousUser.is_anonymous
      • AnonymousUser.is_authenticated
      • AnonymousUser.get_username()
    • LinkedAccount
      • LinkedAccount.user
      • LinkedAccount.service_id
      • LinkedAccount.service_user_id
      • LinkedAccount.service_data
      • LinkedAccount.extra_data
      • LinkedAccount.get_extra_data_json()
      • LinkedAccount.get_service_data_json()
      • LinkedAccount.id
      • LinkedAccount.objects
      • LinkedAccount.set_extra_data_json()
      • LinkedAccount.set_service_data_json()
      • LinkedAccount.user_id
    • LocalSiteProfile
      • LocalSiteProfile.user
      • LocalSiteProfile.profile
      • LocalSiteProfile.local_site
      • LocalSiteProfile.permissions
      • LocalSiteProfile.direct_incoming_request_count
      • LocalSiteProfile.total_incoming_request_count
      • LocalSiteProfile.pending_outgoing_request_count
      • LocalSiteProfile.total_outgoing_request_count
      • LocalSiteProfile.starred_public_request_count
      • LocalSiteProfile.objects
      • LocalSiteProfile.__str__()
      • LocalSiteProfile.decrement_direct_incoming_request_count()
      • LocalSiteProfile.decrement_pending_outgoing_request_count()
      • LocalSiteProfile.decrement_starred_public_request_count()
      • LocalSiteProfile.decrement_total_incoming_request_count()
      • LocalSiteProfile.decrement_total_outgoing_request_count()
      • LocalSiteProfile.get_permissions_json()
      • LocalSiteProfile.id
      • LocalSiteProfile.increment_direct_incoming_request_count()
      • LocalSiteProfile.increment_pending_outgoing_request_count()
      • LocalSiteProfile.increment_starred_public_request_count()
      • LocalSiteProfile.increment_total_incoming_request_count()
      • LocalSiteProfile.increment_total_outgoing_request_count()
      • LocalSiteProfile.local_site_id
      • LocalSiteProfile.profile_id
      • LocalSiteProfile.reinit_direct_incoming_request_count()
      • LocalSiteProfile.reinit_pending_outgoing_request_count()
      • LocalSiteProfile.reinit_starred_public_request_count()
      • LocalSiteProfile.reinit_total_incoming_request_count()
      • LocalSiteProfile.reinit_total_outgoing_request_count()
      • LocalSiteProfile.reload_direct_incoming_request_count()
      • LocalSiteProfile.reload_pending_outgoing_request_count()
      • LocalSiteProfile.reload_starred_public_request_count()
      • LocalSiteProfile.reload_total_incoming_request_count()
      • LocalSiteProfile.reload_total_outgoing_request_count()
      • LocalSiteProfile.set_permissions_json()
      • LocalSiteProfile.user_id
    • Profile
      • Profile.user
      • Profile.first_time_setup_done
      • Profile.should_send_email
      • Profile.should_send_own_updates
      • Profile.collapsed_diffs
      • Profile.wordwrapped_diffs
      • Profile.syntax_highlighting
      • Profile.is_private
      • Profile.open_an_issue
      • Profile.default_use_rich_text
      • Profile.show_closed
      • Profile.sort_review_request_columns
      • Profile.sort_dashboard_columns
      • Profile.sort_submitter_columns
      • Profile.sort_group_columns
      • Profile.review_request_columns
      • Profile.dashboard_columns
      • Profile.submitter_columns
      • Profile.group_columns
      • Profile.starred_review_requests
      • Profile.starred_groups
      • Profile.timezone
      • Profile.settings
      • Profile.extra_data
      • Profile.objects
      • Profile.__init__()
      • Profile.star_cache
      • Profile.should_confirm_ship_it
      • Profile.should_use_rich_text
      • Profile.should_enable_desktop_notifications
      • Profile.quick_access_actions
      • Profile.ui_theme_id
      • Profile.get_starred_review_groups_count()
      • Profile.get_starred_review_requests_count()
      • Profile.has_starred_review_groups()
      • Profile.has_starred_review_requests()
      • Profile.is_object_starred()
      • Profile.is_review_group_starred()
      • Profile.is_review_request_starred()
      • Profile.star_review_request()
      • Profile.unstar_review_request()
      • Profile.star_review_group()
      • Profile.unstar_review_group()
      • Profile.prefetch_starred_objects()
      • Profile.prefetch_starred_review_groups()
      • Profile.prefetch_starred_review_requests()
      • Profile.__str__()
      • Profile.avatar_service
      • Profile.get_display_name()
      • Profile.save()
      • Profile.get_extra_data_json()
      • Profile.get_settings_json()
      • Profile.get_timezone_display()
      • Profile.id
      • Profile.set_extra_data_json()
      • Profile.set_settings_json()
      • Profile.site_profiles
      • Profile.user_id
    • ReviewRequestVisit
      • ReviewRequestVisit.VISIBLE
      • ReviewRequestVisit.ARCHIVED
      • ReviewRequestVisit.MUTED
      • ReviewRequestVisit.VISIBILITY
      • ReviewRequestVisit.user
      • ReviewRequestVisit.review_request
      • ReviewRequestVisit.timestamp
      • ReviewRequestVisit.visibility
      • ReviewRequestVisit.objects
      • ReviewRequestVisit.__str__()
      • ReviewRequestVisit.get_next_by_timestamp()
      • ReviewRequestVisit.get_previous_by_timestamp()
      • ReviewRequestVisit.get_visibility_display()
      • ReviewRequestVisit.id
      • ReviewRequestVisit.review_request_id
      • ReviewRequestVisit.user_id
    • Trophy
      • Trophy.category
      • Trophy.received_date
      • Trophy.review_request
      • Trophy.local_site
      • Trophy.user
      • Trophy.objects
      • Trophy.trophy_type
      • Trophy.get_display_text()
      • Trophy.get_next_by_received_date()
      • Trophy.get_previous_by_received_date()
      • Trophy.id
      • Trophy.local_site_id
      • Trophy.review_request_id
      • Trophy.user_id
    • User
      • User.application_set
      • User.changedescription_set
      • User.date_joined
      • User.default_review_paths
      • User.directed_drafts
      • User.directed_review_requests
      • User.draft
      • User.email
      • User.file_attachments
      • User.first_name
      • User.get_absolute_url()
      • User.get_local_site_stats()
      • User.get_next_by_date_joined()
      • User.get_previous_by_date_joined()
      • User.get_profile()
      • User.get_site_profile()
      • User.groups
      • User.has_private_profile()
      • User.id
      • User.is_active
      • User.is_admin_for_user()
      • User.is_profile_visible()
      • User.is_staff
      • User.is_superuser
      • User.last_login
      • User.last_name
      • User.linked_accounts
      • User.local_site
      • User.local_site_admins
      • User.logentry_set
      • User.oauth2_provider_accesstoken
      • User.oauth2_provider_application
      • User.oauth2_provider_devicegrant
      • User.oauth2_provider_grant
      • User.oauth2_provider_idtoken
      • User.oauth2_provider_refreshtoken
      • User.oauth_application
      • User.password
      • User.profile_set
      • User.repositories
      • User.review_groups
      • User.review_request_visits
      • User.review_requests
      • User.reviews
      • User.should_send_email()
      • User.should_send_own_updates()
      • User.site_profiles
      • User.status_updates
      • User.storedconsentdata
      • User.trophies
      • User.user_permissions
      • User.username
      • User.webapi_tokens
    • UserLocalSiteStats
      • UserLocalSiteStats.admined_local_site_ids
      • UserLocalSiteStats.local_site_ids
      • UserLocalSiteStats.state_uuid
      • UserLocalSiteStats.__closed__
      • UserLocalSiteStats.__extra_items__
      • UserLocalSiteStats.__mutable_keys__
      • UserLocalSiteStats.__optional_keys__
      • UserLocalSiteStats.__readonly_keys__
      • UserLocalSiteStats.__required_keys__
      • UserLocalSiteStats.__total__