models: Document UserProfile.avatar_hash as LDAP-only.

This commit is contained in:
Alex Vandiver 2024-06-13 13:25:08 +00:00 committed by Alex Vandiver
parent b36ad31f0e
commit 3ce06361c8
1 changed files with 3 additions and 0 deletions

View File

@ -560,6 +560,9 @@ class UserProfile(AbstractBaseUser, PermissionsMixin, UserBaseSettings):
default=AVATAR_FROM_GRAVATAR, choices=AVATAR_SOURCES, max_length=1 default=AVATAR_FROM_GRAVATAR, choices=AVATAR_SOURCES, max_length=1
) )
avatar_version = models.PositiveSmallIntegerField(default=1) avatar_version = models.PositiveSmallIntegerField(default=1)
# This is only used for LDAP-provided avatars; it contains the
# SHA256 hex digest of most recent raw contents that LDAP provided
# us, pre-thumbnailing.
avatar_hash = models.CharField(null=True, max_length=64) avatar_hash = models.CharField(null=True, max_length=64)
# TODO: TUTORIAL_STATUS was originally an optimization designed to # TODO: TUTORIAL_STATUS was originally an optimization designed to