Only mark a field as changed if the value has changed (#258)
This commit is contained in:
parent
8f05896bc9
commit
97a98f0045
@ -185,8 +185,9 @@ class FieldTest(unittest.TestCase):
|
||||
|
||||
# Migrate the data
|
||||
for g in Group.objects():
|
||||
g.author = g.author
|
||||
g.members = g.members
|
||||
# Explicitly mark as changed so resets
|
||||
g._mark_as_changed('author')
|
||||
g._mark_as_changed('members')
|
||||
g.save()
|
||||
|
||||
group = Group.objects.first()
|
||||
|
Loading…
x
Reference in New Issue
Block a user