From f922cf16d78986ffb604667c875c5f73bb07f5b3 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 18 Mar 2024 16:25:40 +0100 Subject: [PATCH] fix phone in federation membership --- idhub/admin/forms.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/idhub/admin/forms.py b/idhub/admin/forms.py index 01f39f8..a67c77f 100644 --- a/idhub/admin/forms.py +++ b/idhub/admin/forms.py @@ -225,7 +225,11 @@ class ImportForm(forms.Form): props = self.json_schema.get("properties", {}) # Forze than pandas read one column as string - dtype_dict = {"phoneNumber": str, 'postCode': str} + dtype_dict = { + "phoneNumber": str, + "phone": str, + 'postCode': str + } df = pd.read_excel(data, dtype=dtype_dict) df.fillna('', inplace=True)