This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
python-entrouvert/entrouvert/djommon/multitenant/models.py

12 lines
292 B
Python

from tenant_schemas.models import TenantMixin
class Tenant(TenantMixin):
# default true, schema will be automatically created and synced when it is saved
auto_create_schema = False
def save(self):
pass
def __unicode__(self):
return u'%s' % self.schema_name