Project

General

Profile

« Previous | Next » 

Revision 01a055c6

Added by Thomas Noël about 9 years ago

result of tenant.create_schema is undefined

View differences:

entrouvert/djommon/multitenant/management/commands/create_tenant.py
33 33
                print
34 34
                print self.style.NOTICE("=== Creating schema ") \
35 35
                    + self.style.SQL_TABLE(tenant.schema_name)
36
            if not tenant.create_schema(check_if_exists=True):
37
                print self.style.ERROR(' Nothing to do: %r already exist' % hostname)
36
            tenant.create_schema(check_if_exists=True)

Also available in: Unified diff