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:
@@ -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)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user