Advertisement
Guest User

bino:django-tenant-schema:models.py

a guest
Mar 1st, 2013
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. from django.db import models
  2.  
  3. # Create your models here.
  4. from tenant_schemas.models import TenantMixin
  5.  
  6. class Client(TenantMixin):
  7.     name = models.CharField(max_length=100)
  8.     paid_until =  models.DateField()
  9.     on_trial = models.BooleanField()
  10.     created_on = models.DateField(auto_now_add=True)
  11.  
  12.     # default true, schema will be automatically created and synced when it is saved
  13.     auto_create_schema = True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement