remove restrictions of unique File_datas

This commit is contained in:
Cayo Puigdefabregas 2024-02-14 10:59:41 +01:00
parent 95beec7d93
commit eb1abc89b4
1 changed files with 0 additions and 2 deletions

View File

@ -195,8 +195,6 @@ class ImportForm(forms.Form):
def clean_file_import(self):
data = self.cleaned_data["file_import"]
self.file_name = data.name
if File_datas.objects.filter(file_name=self.file_name, success=True).exists():
raise ValidationError("This file already exists!")
# df = pd.read_csv (data, delimiter="\t", quotechar='"', quoting=csv.QUOTE_ALL)
df = pd.read_excel(data)