cleaned up validation error method
This commit is contained in:
parent
0a661596b3
commit
1e7b76005c
|
|
@ -672,9 +672,7 @@ class BulkImportView(GetReturnURLMixin, ObjectPermissionRequiredMixin, View):
|
||||||
)
|
)
|
||||||
|
|
||||||
def used_both_csv_fields(self):
|
def used_both_csv_fields(self):
|
||||||
if self.cleaned_data['csv_file'][1] and self.cleaned_data['csv'][1]:
|
return self.cleaned_data['csv_file'][1] and self.cleaned_data['csv'][1]
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
||||||
return ImportForm(*args, **kwargs)
|
return ImportForm(*args, **kwargs)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue