From 6b542d03565087da24a905e0b0a66d3a22611d5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agn=C3=A8s=20Haasser?= Date: Mon, 22 Nov 2021 18:14:42 +0100 Subject: [PATCH] Fix phone number to allow excel import --- .../migrations/0078_auto_20211122_1813.py | 18 ++++++++++++++++++ aidants_connect_web/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 aidants_connect_web/migrations/0078_auto_20211122_1813.py diff --git a/aidants_connect_web/migrations/0078_auto_20211122_1813.py b/aidants_connect_web/migrations/0078_auto_20211122_1813.py new file mode 100644 index 000000000..dc6b62d69 --- /dev/null +++ b/aidants_connect_web/migrations/0078_auto_20211122_1813.py @@ -0,0 +1,18 @@ +# Generated by Django 3.1.13 on 2021-11-22 17:13 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("aidants_connect_web", "0077_aidant_phone"), + ] + + operations = [ + migrations.AlterField( + model_name="aidant", + name="phone", + field=models.TextField(blank=True, verbose_name="Téléphone"), + ), + ] diff --git a/aidants_connect_web/models.py b/aidants_connect_web/models.py index a091680bd..4376391fe 100644 --- a/aidants_connect_web/models.py +++ b/aidants_connect_web/models.py @@ -147,7 +147,7 @@ def create_superuser(self, username, email=None, password=None, **extra_fields): class Aidant(AbstractUser): profession = models.TextField(blank=False) - phone = PhoneNumberField("Téléphone", blank=True) + phone = models.TextField("Téléphone", blank=True) organisation = models.ForeignKey( Organisation,