Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How to incorporate multi-tenancy with django river? #185

Open
shubham-pyc opened this issue Jan 12, 2021 · 0 comments
Open

[Question] How to incorporate multi-tenancy with django river? #185

shubham-pyc opened this issue Jan 12, 2021 · 0 comments

Comments

@shubham-pyc
Copy link

shubham-pyc commented Jan 12, 2021

I am creating a django webapp which will be used by multiple organizations.
I am using https://github.com/citusdata/django-multitenant library which helps in isolation of the tenant's data. Is there a way to change the existing workflow model so that I can have a foreign key related to a tenant model?

for example:

class Contract(TentantModel):
        tentant = models.ForiegnKey(Tenant)
        state = StateField()`

so that the tenant foreign key and state can be unique (combined)

@shubham-pyc shubham-pyc changed the title How to incorporate multitenancy with django river? [Question] How to incorporate multi-tenancy with django river? Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant