mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-24 18:22:24 +00:00
ZIP code can be larger than 32767
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
parent
444bea2440
commit
b95b41a2ed
@ -0,0 +1,19 @@
|
||||
# Generated by Django 3.2.13 on 2023-01-16 22:13
|
||||
|
||||
import django.core.validators
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('registration', '0002_auto_20230110_2031'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='participantregistration',
|
||||
name='zip_code',
|
||||
field=models.PositiveIntegerField(validators=[django.core.validators.MinValueValidator(1000), django.core.validators.MaxValueValidator(99999)], verbose_name='zip code'),
|
||||
),
|
||||
]
|
@ -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)],
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user