Skip to content

Commit

Permalink
Merge 022174c into a9de5b1
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewhegarty committed Oct 1, 2023
2 parents a9de5b1 + 022174c commit 18c8885
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 3 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
Changelog
=========

- removed unused variable ``Result.new_record`` (#1640)

4.0.0-alpha.5 (2023-09-22)
--------------------------

- dynamic widget parameters for CharField fixes 'NOT NULL constraint' error in xlsx (#1485)
- refactor to export HTML / formulae escaping updates (#1638)


4.0.0-alpha.0 (2023-09-20)
--------------------------

Expand Down
1 change: 0 additions & 1 deletion import_export/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,6 @@ def import_row(
row_result.import_type = RowResult.IMPORT_TYPE_NEW
else:
row_result.import_type = RowResult.IMPORT_TYPE_UPDATE
row_result.new_record = new
if not skip_diff:
original = deepcopy(instance)
diff = self.get_diff_class()(self, original, new)
Expand Down
5 changes: 0 additions & 5 deletions import_export/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,6 @@ def __init__(self):
#: This value is only set for updates.
self.original = None

#: A boolean flag indicating whether the record is `new` or not.
#: Deprecated: use the value of ``import_type`` instead.
#: See issue 1586.
self.new_record = None

def add_instance_info(self, instance):
if instance is not None:
# Add object info to RowResult (e.g. for LogEntry)
Expand Down

0 comments on commit 18c8885

Please sign in to comment.