root / entrouvert / djommon / multitenant / models.py @ 1db4b242
| 1 |
from tenant_schemas.models import TenantMixin |
|---|---|
| 2 |
|
| 3 |
class Tenant(TenantMixin): |
| 4 |
# default true, schema will be automatically created and synced when it is saved
|
| 5 |
auto_create_schema = False |
| 6 |
|
| 7 |
def save(self): |
| 8 |
pass
|
| 9 |
|
| 10 |
def __unicode__(self): |
| 11 |
return u'%s' % self.schema_name |