mik3y / django-db-multitenant

A simple multi-tenancy solution for Django apps.
Other
155 stars 34 forks source link

Tenant after login #9

Closed chesstrian closed 7 years ago

chesstrian commented 7 years ago

Hi @mik3y,

The requirement I'm trying to implement tells me that the tenant is known after a user is logged in, it means, the user table is shared or public and contains the tenant's name, and then we can have a different database per tenant.

Is this currently possible with your library?. Please give me some hints about implementing it if possible.

Thanks in advance.

stephane commented 7 years ago

It will be possible to do my PR#13 but you'll need to provide a custom authentication and not sure it will be easy to handle migration. You could also have a look to https://github.com/Corvia/django-tenant-users