bernardopires / django-tenant-schemas

Tenant support for Django using PostgreSQL schemas.
https://django-tenant-schemas.readthedocs.org/en/latest/
MIT License
1.45k stars 424 forks source link

Changing between schemas as a Super Admin #607

Open BrentLageson opened 4 years ago

BrentLageson commented 4 years ago

I am not sure if this is the best place to ask this but because this ties closely with the Schemas I am hoping someone might have some insight on what I am trying to accomplish.

I want to give super admins a way to change between tenant schemas without having to log in again. This would only be when accessing the django admin panel that they would need to easily change between schemas which in my use is changing between organizations.

So far I created a link on the list of organizations that will route them to a whichever organization they click on but then they have to log in again. I don't really care if the url updates to the new schema or not really I just need to be able to access that schemas data, navigate the django admin as that schema and make changes to the data.

Thank you for any assistance you may be able to provide.

tomturner commented 4 years ago

Have a look at https://github.com/Corvia/django-tenant-users

BrentLageson commented 4 years ago

@tomturner I do like this solution and wish I had found it sooner but at this point I already have users on the platform and my fear would be disrupting those users. Standard users wont really be apart of other organizations, so if I could find a more specific work around to the SuperUsers only I would like to.