Results¶
Result¶
-
class
import_export.results.
Result
(*args, **kwargs)¶ -
has_errors
()¶ Returns a boolean indicating whether the import process resulted in any critical (non-validation) errors for this result.
-
has_validation_errors
()¶ Returns a boolean indicating whether the import process resulted in any validation errors for this result.
-
RowResult¶
-
class
import_export.results.
RowResult
¶ Container for values relating to a row import.
-
diff
= None¶ A HTML representation of the difference between the ‘original’ and ‘updated’ model instance.
-
errors
= None¶ An instance of
Error
which may have been raised during import.
-
import_type
= None¶ A string identifier which identifies what type of import was performed.
-
instance
= None¶ A reference to the model instance which was created, updated or deleted.
-
new_record
= None¶ A boolean flag indicating whether the record is new or not. Deprecated: use the value of
import_type
instead. See issue 1586.
-
object_id
= None¶ The instance id (used in Admin UI)
-
object_repr
= None¶ The object representation (used in Admin UI)
-
original
= None¶ A reference to the model instance before updates were applied. This value is only set for updates.
-
row_values
= None¶ Can the raw values associated with each imported row.
-
validation_error
= None¶ Contains any ValidationErrors which may have been raised during import.
-
InvalidRow¶
-
class
import_export.results.
InvalidRow
(number, validation_error, values)¶ A row that resulted in one or more
ValidationError
being raised during import.-
error_count
¶ Returns the total number of validation errors for this row.
-
field_specific_errors
¶ Returns a dictionary of field-specific validation errors for this row.
-
non_field_specific_errors
¶ Returns a list of non field-specific validation errors for this row.
-