1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2025-07-06 21:34:01 +02:00

Do not make string nullable in database

This commit is contained in:
Alexandre Iooss
2020-09-23 20:31:25 +02:00
parent 9a7304f573
commit 91b361d7a6
4 changed files with 80 additions and 9 deletions

View File

@ -13,13 +13,11 @@ class User(AbstractUser):
telephone = models.CharField(
verbose_name=_('phone number'),
max_length=15,
null=True,
blank=True,
)
address = models.CharField(
verbose_name=_('address'),
max_length=255,
null=True,
blank=True,
)
maxemprunt = models.IntegerField(