misc: update various parts for Python 3 compatibility (missed bit) (#36093)

This commit is contained in:
Frédéric Péters 2019-09-13 13:41:05 +02:00
parent 872aebb0a5
commit b18d94d3d8
1 changed files with 3 additions and 3 deletions

View File

@ -44,9 +44,9 @@ class Command(BaseCommand):
schema = TenantMiddleware.hostname2schema(hostname)
tenant = get_tenant_model()(schema_name=schema, domain_url=hostname)
if verbosity >= 1:
print
print self.style.NOTICE("=== Creating schema ") \
+ self.style.SQL_TABLE(tenant.schema_name)
print()
print(self.style.NOTICE("=== Creating schema ")
+ self.style.SQL_TABLE(tenant.schema_name))
with transaction.atomic():
tenant.create_schema(check_if_exists=True)
except Exception as e: