From b6ece2af105ac938bcc238c229ca13dd0cc466c5 Mon Sep 17 00:00:00 2001 From: Kelketek Date: Thu, 17 Oct 2013 20:18:37 -0500 Subject: [PATCH] Fixed issue where migrations would not also migrate ContentType for ChannelDB. --- .hgignore | 1 + src/comms/migrations/0014_transfer_channels.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.hgignore b/.hgignore index 54fbbb073..5846cac7f 100644 --- a/.hgignore +++ b/.hgignore @@ -20,3 +20,4 @@ docs/sphinx/wiki2rest/wiki2html/* docs/sphinx/wiki2rest/rest/* docs/sphinx/wiki2rest/html/* docs/sphinx/wiki2html/* +.idea/* diff --git a/src/comms/migrations/0014_transfer_channels.py b/src/comms/migrations/0014_transfer_channels.py index 984fb6f6d..73a1d0919 100644 --- a/src/comms/migrations/0014_transfer_channels.py +++ b/src/comms/migrations/0014_transfer_channels.py @@ -36,6 +36,8 @@ class Migration(DataMigration): tag.save() new_channel.db_tags.add(tag) new_channel.save() + orm['contenttypes.ContentType'].objects.filter( + app_label='comms', model='channel').update(model='channeldb', name='ChannelDB') def backwards(self, orm): "Remove all InterimChannels."