From 70fef87576ac997fdb4e1c265152cc8f2929141a Mon Sep 17 00:00:00 2001 From: Bernardo Pires Date: Mon, 5 Jun 2017 21:00:02 +0200 Subject: [PATCH] Remove mention to MigrateCommand --- tenant_schemas/management/commands/migrate.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tenant_schemas/management/commands/migrate.py b/tenant_schemas/management/commands/migrate.py index 663ad33..25ad908 100644 --- a/tenant_schemas/management/commands/migrate.py +++ b/tenant_schemas/management/commands/migrate.py @@ -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))