thunderbird_accounts.authentication.models
Classes
|
- class thunderbird_accounts.authentication.models.User(*args, **kwargs)[source]
Bases:
AbstractUser
,BaseModel
- Parameters:
oidc_id – The ID of the connected oidc account
last_used_email – The last used email associated with this account
language – The user’s preferred language to view the ui/system emails in
display_name – Display name from oidc profile
avatar_url – Avatar URL from oidc profile
timezone – The user’s timezone
password (CharField) – Password
last_login (DateTimeField) – Last login
is_superuser (BooleanField) – Superuser status. Designates that this user has all permissions without explicitly assigning them.
username (CharField) – Username. Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
first_name (CharField) – First name
last_name (CharField) – Last name
email (EmailField) – Email address
is_staff (BooleanField) – Staff status. Designates whether the user can log into this admin site.
is_active (BooleanField) – Active. Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
date_joined (DateTimeField) – Date joined
uuid (UUIDField) – Primary key: Uuid
created_at (DateTimeField) – Created at
updated_at (DateTimeField) – Updated at
Relationship fields:
- Parameters:
groups (
ManyToManyField
toGroup
) – Groups. The groups this user belongs to. A user will get all permissions granted to each of their groups. (related name:user_set
)user_permissions (
ManyToManyField
toPermission
) – User permissions. Specific permissions for this user. (related name:user_set
)
Reverse relationships:
- Parameters:
subscription (Reverse
ForeignKey
fromSubscription
) – All subscriptions of this user (related name ofuser
)account (Reverse
ForeignKey
fromAccount
) – All accounts of this user (related name ofuser
)logentry (Reverse
ForeignKey
fromLogEntry
) – All log entries of this user (related name ofuser
)
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned