Remove mention to MigrateCommand

This commit is contained in:
Bernardo Pires 2017-06-05 21:00:02 +02:00 committed by GitHub
parent 5b907e4f05
commit 70fef87576
1 changed files with 1 additions and 2 deletions

View File

@ -9,8 +9,7 @@ class Command(BaseCommand):
def handle(self, *args, **options):
database = options.get('database', 'default')
if (settings.DATABASES[database]['ENGINE'] == 'tenant_schemas.postgresql_backend' or
MigrateCommand is BaseCommand):
if (settings.DATABASES[database]['ENGINE'] == 'tenant_schemas.postgresql_backend'):
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))