2
0
Эх сурвалжийг харах

cleaned up validation error method

Alyssa Bigley 4 жил өмнө
parent
commit
1e7b76005c

+ 1 - 3
netbox/netbox/views/generic.py

@@ -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)