diff --git a/api/models/agreement_signature.py b/api/models/agreement_signature.py index a8f1815..99275fd 100644 --- a/api/models/agreement_signature.py +++ b/api/models/agreement_signature.py @@ -5,6 +5,7 @@ import typing as t +from django.core.validators import MinLengthValidator from django.db import models from django.utils.translation import gettext_lazy as _ @@ -26,6 +27,7 @@ class AgreementSignature(models.Model): _("agreement id"), max_length=40, help_text=_("Commit ID of the contribution agreement in workspace."), + validators=[MinLengthValidator(40)], ) signed_at = models.DateTimeField(_("signed at"))