Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(10)  |  Call(0)  |  Derive(6)  |  Import(4)

src/d/j/django-tenant-schemas-1.4.6-1-ga6e682d/examples/tenant_tutorial/customers/models.py   django-tenant-schemas(Download)
from django.db import models
from tenant_schemas.models import TenantMixin
 
 
class Client(TenantMixin):

src/d/j/django-tenant-schemas-HEAD/examples/tenant_tutorial/customers/models.py   django-tenant-schemas(Download)
from django.db import models
from tenant_schemas.models import TenantMixin
 
 
class Client(TenantMixin):

src/d/j/django-tenant-schemas-HEAD/tenant_schemas/tests/models.py   django-tenant-schemas(Download)
from django.db import models
from tenant_schemas.models import TenantMixin
 
 
# as TenantMixin is an abstract model, it needs to be created
class Tenant(TenantMixin):
class NonAutoSyncTenant(TenantMixin):
    auto_create_schema = False
 
    class Meta:
        app_label = 'tenant_schemas'

src/d/j/django-tenant-schemas-1.4.6-1-ga6e682d/tenant_schemas/tests/models.py   django-tenant-schemas(Download)
from django.db import models
from tenant_schemas.models import TenantMixin
 
 
# as TenantMixin is an abstract model, it needs to be created
class Tenant(TenantMixin):
class NonAutoSyncTenant(TenantMixin):
    auto_create_schema = False
 
    class Meta:
        app_label = 'tenant_schemas'