reviewboard.webapi.models¶
-
class
WebAPIToken
(*args, **kwargs)[source]¶ Bases:
djblets.webapi.models.BaseWebAPIToken
An access token used for authenticating with the API.
Each token can be used to authenticate the token’s owner with the API, without requiring a username or password to be provided. Tokens can be revoked, and new tokens added.
Tokens can store policy information, which will later be used for restricting access to the API.
-
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 aForwardManyToOneDescriptor
instance.
-
id
[source]¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-