|
@@ -99,14 +99,14 @@ 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=5, blank=True, null=True,
|
|
|
- validators=[RegexValidator(regex=r'^\d{5}$',
|
|
|
+ postal_code = models.CharField(max_length=settings.POSTCODE_LENGTH, blank=True, null=True,
|
|
|
+ validators=[RegexValidator(regex=r'^\d{' + str(settings.POSTCODE_LENGTH) + r'}$',
|
|
|
message='Code postal non valide.')],
|
|
|
verbose_name='code postal')
|
|
|
city = models.CharField(max_length=200, blank=True, null=True,
|
|
|
verbose_name='commune')
|
|
|
country = models.CharField(max_length=200, blank=True, null=True,
|
|
|
- default='France',
|
|
|
+ default=settings.DEFAULT_COUNTRY,
|
|
|
verbose_name='pays')
|
|
|
resign_date = models.DateField(null=True, blank=True,
|
|
|
verbose_name="date de départ de "
|