diff --git a/idhub/admin/forms.py b/idhub/admin/forms.py index e63a4b3..3796969 100644 --- a/idhub/admin/forms.py +++ b/idhub/admin/forms.py @@ -224,7 +224,9 @@ class ImportForm(forms.Form): if not self._schema: return data - df = pd.read_excel(data) + # Forze than pandas read one column as string + dtype_dict = {"phoneNumber": str} + df = pd.read_excel(data, dtype=dtype_dict) df.fillna('', inplace=True) try: