mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 03:56:53 -06:00
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):
|
||||
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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user