Fixed issue where migrations would not also migrate ContentType for ChannelDB.
This commit is contained in:
parent
f9b9c98b07
commit
b6ece2af10
2 changed files with 3 additions and 0 deletions
|
|
@ -20,3 +20,4 @@ docs/sphinx/wiki2rest/wiki2html/*
|
||||||
docs/sphinx/wiki2rest/rest/*
|
docs/sphinx/wiki2rest/rest/*
|
||||||
docs/sphinx/wiki2rest/html/*
|
docs/sphinx/wiki2rest/html/*
|
||||||
docs/sphinx/wiki2html/*
|
docs/sphinx/wiki2html/*
|
||||||
|
.idea/*
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,8 @@ class Migration(DataMigration):
|
||||||
tag.save()
|
tag.save()
|
||||||
new_channel.db_tags.add(tag)
|
new_channel.db_tags.add(tag)
|
||||||
new_channel.save()
|
new_channel.save()
|
||||||
|
orm['contenttypes.ContentType'].objects.filter(
|
||||||
|
app_label='comms', model='channel').update(model='channeldb', name='ChannelDB')
|
||||||
|
|
||||||
def backwards(self, orm):
|
def backwards(self, orm):
|
||||||
"Remove all InterimChannels."
|
"Remove all InterimChannels."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue