format indexing for Python 2.6 compatibility

This commit is contained in:
mbauerRDN 2014-11-03 14:00:19 +11:00
parent dec70ee9d7
commit 7445463c0b
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ class Command(MigrateCommand):
database = options.get('database', 'default')
if (settings.DATABASES[database]['ENGINE'] == 'tenant_schemas.postgresql_backend' or
MigrateCommand is BaseCommand):
raise CommandError("migrate has been disabled, for database '{}'. Use migrate_schemas "
raise CommandError("migrate has been disabled, for database '{0}'. Use migrate_schemas "
"instead. Please read the documentation if you don't know why you "
"shouldn't call migrate directly!".format(database))
super(Command, self).handle(*args, **options)