# HG changeset patch # User neko259 # Date 2014-06-22 20:02:47 # Node ID d7b878308ebd0151200f2d09dc957829b948c76e # Parent 64726435a550aa9a4ca593c8d9ab14283e5b5d83 Fixed post image migration saving posts when it's unnecessary diff --git a/boards/migrations/0027_image_field_to_model.py b/boards/migrations/0027_image_field_to_model.py --- a/boards/migrations/0027_image_field_to_model.py +++ b/boards/migrations/0027_image_field_to_model.py @@ -23,8 +23,8 @@ class Migration(DataMigration): image.save() + post.images.clear() post.images.add(image) - post.save() def backwards(self, orm): "Write your backwards methods here."