Skip to content

Commit 09b5078

Browse files
RealOrangeOnejeking3
authored andcommitted
Document new included_fields argument to diff_against
1 parent 677aa51 commit 09b5078

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/history_diffing.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ This may be useful when you want to construct timelines and need to get only the
2020
delta = new_record.diff_against(old_record)
2121
for change in delta.changes:
2222
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

Comments
 (0)