fix phoneNumber as string

This commit is contained in:
Cayo Puigdefabregas 2024-02-29 11:47:05 +01:00
parent 6466e93bc5
commit da6ae895a3
1 changed files with 3 additions and 1 deletions

View File

@ -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: