1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

cleaned up validation error method

This commit is contained in:
Alyssa Bigley
2021-06-14 15:23:42 -04:00
parent 0a661596b3
commit 1e7b76005c

View File

@@ -672,9 +672,7 @@ class BulkImportView(GetReturnURLMixin, ObjectPermissionRequiredMixin, View):
)
def used_both_csv_fields(self):
if self.cleaned_data['csv_file'][1] and self.cleaned_data['csv'][1]:
return True
return False
return self.cleaned_data['csv_file'][1] and self.cleaned_data['csv'][1]
return ImportForm(*args, **kwargs)