Skip to content

Commit a295dcb

Browse files
committed
Add a comment in tests
1 parent 5b48fa0 commit a295dcb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_save_fields.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ def test_save_deferred_field_with_update_fields():
100100

101101
tm = TestModel.objects.defer('boolean').first()
102102
tm.boolean = False
103-
104-
assert tm.get_dirty_fields() == {}
105-
103+
# Test that providing a deferred field to the update_fields
104+
# save parameter doesn't raise a KeyError anymore.
106105
tm.save(update_fields=['boolean'])

0 commit comments

Comments
 (0)