You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/history_diffing.rst
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,3 +20,5 @@ This may be useful when you want to construct timelines and need to get only the
20
20
delta = new_record.diff_against(old_record)
21
21
for change in delta.changes:
22
22
print("{} changed from {} to {}".format(change.field, change.old, change.new))
23
+
24
+
``diff_against`` also accepts 2 arguments ``excluded_fields`` and ``included_fields`` to either explicitly include or exclude fields from being diffed.
0 commit comments