Skip to content

Commit

Permalink
min length validation
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Jul 22, 2024
1 parent 271bf29 commit d11cc7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/models/agreement_signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 _

Expand All @@ -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"))

Expand Down

0 comments on commit d11cc7f

Please sign in to comment.