|
@@ -99,8 +99,8 @@ class Member(CoinLdapSyncMixin, AbstractUser):
|
|
|
# support more countries and address types)
|
|
|
address = models.TextField(
|
|
|
verbose_name='adresse postale', blank=True, null=True)
|
|
|
- postal_code = models.CharField(max_length=settings.POSTCODE_LENGTH, blank=True, null=True,
|
|
|
- validators=[RegexValidator(regex=r'^\d{' + str(settings.POSTCODE_LENGTH) + r'}$',
|
|
|
+ postal_code = models.CharField(max_length=settings.POSTCODE_MAX_LENGTH, blank=True, null=True,
|
|
|
+ validators=[RegexValidator(regex=r'^\d{' + str(settings.POSTCODE_MIN_LENGTH) + r',' + str(settings.POSTCODE_MAX_LENGTH) + r'}$',
|
|
|
message='Code postal non valide.')],
|
|
|
verbose_name='code postal')
|
|
|
city = models.CharField(max_length=200, blank=True, null=True,
|