misc: update various parts for Python 3 compatibility (missed bit) (#36093)
This commit is contained in:
parent
872aebb0a5
commit
b18d94d3d8
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue