result of tenant.create_schema is undefined

This commit is contained in:
Thomas NOËL 2015-02-05 16:10:20 +01:00
parent ad0757e72f
commit 01a055c619
2 changed files with 2 additions and 4 deletions

View File

@ -16,5 +16,4 @@ class Command(BaseCommand):
print self.style.NOTICE("=== Creating schema ") \
+ self.style.SQL_TABLE(tenant.schema_name)
if not tenant.create_schema(check_if_exists=True):
print self.style.ERROR(' Nothing to do')
tenant.create_schema(check_if_exists=True)

View File

@ -33,5 +33,4 @@ class Command(BaseCommand):
print
print self.style.NOTICE("=== Creating schema ") \
+ self.style.SQL_TABLE(tenant.schema_name)
if not tenant.create_schema(check_if_exists=True):
print self.style.ERROR(' Nothing to do: %r already exist' % hostname)
tenant.create_schema(check_if_exists=True)