diff --git a/itou/users/migrations/0009_alter_user_public_id.py b/itou/users/migrations/0009_alter_user_public_id.py index a1350ae0ad2..ff0012aa16b 100644 --- a/itou/users/migrations/0009_alter_user_public_id.py +++ b/itou/users/migrations/0009_alter_user_public_id.py @@ -14,7 +14,11 @@ class Migration(migrations.Migration): model_name="user", name="public_id", field=models.UUIDField( - db_index=True, default=uuid.uuid4, unique=True, verbose_name="identifiant public opaque, pour les API" + db_index=True, + default=uuid.uuid4, + help_text="identifiant opaque, pour les API et les URLs publiques", + unique=True, + verbose_name="identifiant public", ), ), ] diff --git a/itou/users/models.py b/itou/users/models.py index 34532d4ae4c..bd93de886e0 100644 --- a/itou/users/models.py +++ b/itou/users/models.py @@ -264,7 +264,8 @@ class User(AbstractUser, AddressMixin): last_checked_at = models.DateTimeField(verbose_name="date de dernière vérification", default=timezone.now) public_id = models.UUIDField( - verbose_name="identifiant public opaque, pour les API", + verbose_name="identifiant public", + help_text="identifiant opaque, pour les API et les URLs publiques", default=uuid.uuid4, unique=True, db_index=True,