Merge pull request #153 from marekmalek/master

Fixes #150. Fix for migration 0002 to handle non default database connec...
This commit is contained in:
Iacopo Spalletti 2014-08-13 15:47:16 +02:00
commit 70834259f1
1 changed files with 3 additions and 3 deletions

View File

@ -2,13 +2,13 @@
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models, connection
from django.db import models, connections
class Migration(SchemaMigration):
def forwards(self, orm):
table_names = connection.introspection.table_names()
table_names = connections[db.db_alias].introspection.table_names()
if 'cmsplugin_text' in table_names:
db.rename_table('cmsplugin_text', 'djangocms_text_ckeditor_text')
@ -44,4 +44,4 @@ class Migration(SchemaMigration):
}
}
complete_apps = ['djangocms_text_ckeditor']
complete_apps = ['djangocms_text_ckeditor']