Skip to content

Commit 02021df

Browse files
committed
Allow excluding fields on all models
1 parent 7d5331d commit 02021df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dbdiff/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ def get_tree(dump, exclude=None):
1717
tree[instance['model']] = {}
1818

1919
exclude_fields = exclude.get(instance['model'], [])
20+
exclude_fields += exclude.get('*', [])
21+
2022
tree[instance['model']][instance['pk']] = {
2123
name: value for name, value in instance['fields'].items()
2224
if name not in exclude_fields

0 commit comments

Comments
 (0)