format indexing for Python 2.6 compatibility

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

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))