1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-07-04 12:52:18 +02:00

ZIP code can be larger than 32767

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2023-01-16 23:14:44 +01:00
parent 444bea2440
commit b95b41a2ed
2 changed files with 20 additions and 1 deletions

View File

@ -139,7 +139,7 @@ class ParticipantRegistration(Registration):
verbose_name=_("address"),
)
zip_code = models.PositiveSmallIntegerField(
zip_code = models.PositiveIntegerField(
verbose_name=_("zip code"),
validators=[MinValueValidator(1000), MaxValueValidator(99999)],
)