reviewboard.avatars.settings¶
- class UserProfileAvatarSettingsManager(user)[source]¶
Bases:
djblets.avatars.settings.AvatarSettingsManager
A mixin that provides avatar service configuration from profiles.
- __init__(user)[source]¶
Initialize the settings manager.
- Parameters
user (
django.contrib.auth.models.User
) – The user.
- property avatar_service_id[source]¶
Return service ID for the user’s selected avatar service.
- Returns
The avatar service ID for the user’s selected avatar service, or
None
if they have not selected one.- Return type
- property configuration[source]¶
The user’s configuration for all avatar services.
- Returns
The user’s configuration for the avatar service.
- Return type