excel with only one line

This commit is contained in:
Cayo Puigdefabregas 2024-02-26 17:31:21 +01:00
parent d590e42114
commit b6711cbe2b

View file

@ -225,7 +225,7 @@ class ImportForm(forms.Form):
data_pd = df.fillna('').to_dict()
if not data_pd or not df.last_valid_index():
if not data_pd or df.last_valid_index() is None:
self.exception("The file you try to import is empty!")
if not self._schema: