Skip to content

Commit

Permalink
Remove mention to MigrateCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardopires authored Jun 5, 2017
1 parent 5b907e4 commit 70fef87
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tenant_schemas/management/commands/migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 70fef87

Please sign in to comment.