diff --git a/idhub/admin/forms.py b/idhub/admin/forms.py index 06d09e8..06ff222 100644 --- a/idhub/admin/forms.py +++ b/idhub/admin/forms.py @@ -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: