Project

General

Profile

Download (292 Bytes) Statistics
| Branch: | Tag: | Revision:

root / entrouvert / djommon / multitenant / models.py @ dc463f1d

1 e62d56fc Benjamin Dauvergne
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 e8304bf1 Benjamin Dauvergne
    def save(self):
8
        pass
9
10 fd48a58c Thomas NOEL
    def __unicode__(self):
11
        return u'%s' % self.schema_name