csv_import: make sure has_errors is toggled (#35773)
This commit is contained in:
parent
50657e71fe
commit
64157da70c
|
@ -296,7 +296,7 @@ class UserCsvImporter(object):
|
|||
row.is_valid = False
|
||||
except CancelImport:
|
||||
self.rows_with_errors += 1
|
||||
if row.errors:
|
||||
if row.errors or not row.is_valid:
|
||||
self.has_errors = True
|
||||
if simulate:
|
||||
raise Simulate
|
||||
|
|
Loading…
Reference in New Issue