예제 #1
0
class Category(TenantModel):
    name = models.CharField(max_length=50)

    objects = TenantManager.from_queryset(CategoryQuerySet)()

    def __str__(self):
        return self.name
예제 #2
0
class Contact(TenantAbstract):
    name = models.CharField(max_length=10)

    objects = TenantManager.from_queryset(ContactQuery)()