Fixed issue where migrations would not also migrate ContentType for ChannelDB.

This commit is contained in:
Kelketek 2013-10-17 20:18:37 -05:00
parent f9b9c98b07
commit b6ece2af10
2 changed files with 3 additions and 0 deletions

View file

@ -20,3 +20,4 @@ docs/sphinx/wiki2rest/wiki2html/*
docs/sphinx/wiki2rest/rest/*
docs/sphinx/wiki2rest/html/*
docs/sphinx/wiki2html/*
.idea/*

View file

@ -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."