Merge pull request #198 from mbauerRDN/master

Use old style indexing in format strings #2
This commit is contained in:
Bernardo Pires 2014-11-03 11:16:48 -05:00
commit 2567101977
2 changed files with 2 additions and 2 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)

View File

@ -14,7 +14,7 @@ class Command(syncdb.Command):
database = options.get('database', 'default')
if (settings.DATABASES[database]['ENGINE'] == 'tenant_schemas.postgresql_backend' and not
django_is_in_test_mode()):
raise CommandError("syncdb has been disabled, for database '{}'. "
raise CommandError("syncdb has been disabled, for database '{0}'. "
"Use sync_schemas instead. Please read the "
"documentation if you don't know why "
"you shouldn't call syncdb directly!".format(database))