# HG changeset patch # User neko259 # Date 2013-09-11 18:34:26 # Node ID e4d947919509f05f09917259cf2db1e1a70613d4 # Parent 91e59abab4fb326930d5bde6d9597ea46b794c55 Fixed bad migration code. diff --git a/boards/migrations/0005_auto.py b/boards/migrations/0005_auto.py --- a/boards/migrations/0005_auto.py +++ b/boards/migrations/0005_auto.py @@ -18,12 +18,6 @@ class Migration(SchemaMigration): )) db.create_unique(m2m_table_name, ['from_post_id', 'to_post_id']) - for post in Post.objects.all(): - if post.parent != NO_PARENT: - parent = Post.objects.get(id=post.parent) - parent.replies.add(post) - - def backwards(self, orm): # Removing M2M table for field replies on 'Post' db.delete_table(db.shorten_name(u'boards_post_replies'))